# 1 "/Users/lostleaf/dev/vnpy_oes/vnoes/tmp.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 403 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/vnoes/tmp.cpp" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h" 1
# 36 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h" 1
# 288 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h" 1
# 125 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h" 1
# 439 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 1
# 148 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h"
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h" 1 3
# 101 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 56 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 3
# 869 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 3
namespace std { inline namespace __1 { } }
# 102 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h" 2 3
# 105 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h" 3


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 1 3 4
# 64 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 1 3 4
# 68 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h" 1 3 4
# 630 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_symbol_aliasing.h" 1 3 4
# 631 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h" 2 3 4
# 696 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_posix_availability.h" 1 3 4
# 697 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h" 2 3 4
# 69 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Availability.h" 1 3 4
# 257 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Availability.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityInternal.h" 1 3 4
# 258 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Availability.h" 2 3 4
# 70 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h" 1 3 4
# 27 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h" 1 3 4
# 33 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h" 1 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_types.h" 1 3 4
# 37 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_types.h" 3 4
typedef signed char __int8_t;



typedef unsigned char __uint8_t;
typedef short __int16_t;
typedef unsigned short __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;
typedef long long __int64_t;
typedef unsigned long long __uint64_t;

typedef long __darwin_intptr_t;
typedef unsigned int __darwin_natural_t;
# 70 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_types.h" 3 4
typedef int __darwin_ct_rune_t;





typedef union {
 char __mbstate8[128];
 long long _mbstateL;
} __mbstate_t;

typedef __mbstate_t __darwin_mbstate_t;


typedef long int __darwin_ptrdiff_t;







typedef long unsigned int __darwin_size_t;





typedef __builtin_va_list __darwin_va_list;





typedef int __darwin_wchar_t;




typedef __darwin_wchar_t __darwin_rune_t;


typedef int __darwin_wint_t;




typedef unsigned long __darwin_clock_t;
typedef __uint32_t __darwin_socklen_t;
typedef long __darwin_ssize_t;
typedef long __darwin_time_t;
# 33 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h" 2 3 4
# 34 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h" 2 3 4
# 55 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h" 3 4
typedef __int64_t __darwin_blkcnt_t;
typedef __int32_t __darwin_blksize_t;
typedef __int32_t __darwin_dev_t;
typedef unsigned int __darwin_fsblkcnt_t;
typedef unsigned int __darwin_fsfilcnt_t;
typedef __uint32_t __darwin_gid_t;
typedef __uint32_t __darwin_id_t;
typedef __uint64_t __darwin_ino64_t;

typedef __darwin_ino64_t __darwin_ino_t;



typedef __darwin_natural_t __darwin_mach_port_name_t;
typedef __darwin_mach_port_name_t __darwin_mach_port_t;
typedef __uint16_t __darwin_mode_t;
typedef __int64_t __darwin_off_t;
typedef __int32_t __darwin_pid_t;
typedef __uint32_t __darwin_sigset_t;
typedef __int32_t __darwin_suseconds_t;
typedef __uint32_t __darwin_uid_t;
typedef __uint32_t __darwin_useconds_t;
typedef unsigned char __darwin_uuid_t[16];
typedef char __darwin_uuid_string_t[37];


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_types.h" 1 3 4
# 57 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_types.h" 3 4
struct __darwin_pthread_handler_rec {
 void (*__routine)(void *);
 void *__arg;
 struct __darwin_pthread_handler_rec *__next;
};

struct _opaque_pthread_attr_t {
 long __sig;
 char __opaque[56];
};

struct _opaque_pthread_cond_t {
 long __sig;
 char __opaque[40];
};

struct _opaque_pthread_condattr_t {
 long __sig;
 char __opaque[8];
};

struct _opaque_pthread_mutex_t {
 long __sig;
 char __opaque[56];
};

struct _opaque_pthread_mutexattr_t {
 long __sig;
 char __opaque[8];
};

struct _opaque_pthread_once_t {
 long __sig;
 char __opaque[8];
};

struct _opaque_pthread_rwlock_t {
 long __sig;
 char __opaque[192];
};

struct _opaque_pthread_rwlockattr_t {
 long __sig;
 char __opaque[16];
};

struct _opaque_pthread_t {
 long __sig;
 struct __darwin_pthread_handler_rec *__cleanup_stack;
 char __opaque[8176];
};

typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t;
typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t;
typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t;
typedef unsigned long __darwin_pthread_key_t;
typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t;
typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t;
typedef struct _opaque_pthread_once_t __darwin_pthread_once_t;
typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t;
typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t;
typedef struct _opaque_pthread_t *__darwin_pthread_t;
# 81 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h" 2 3 4
# 28 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h" 2 3 4
# 40 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h" 3 4
typedef int __darwin_nl_item;
typedef int __darwin_wctrans_t;

typedef __uint32_t __darwin_wctype_t;
# 72 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 2 3 4



# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h" 1 3 4
# 35 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 1 3 4
# 76 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int8_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int8_t.h" 3 4
typedef signed char int8_t;
# 77 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int16_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int16_t.h" 3 4
typedef short int16_t;
# 78 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int32_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int32_t.h" 3 4
typedef int int32_t;
# 79 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int64_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int64_t.h" 3 4
typedef long long int64_t;
# 80 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int8_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int8_t.h" 3 4
typedef unsigned char u_int8_t;
# 82 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int16_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int16_t.h" 3 4
typedef unsigned short u_int16_t;
# 83 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int32_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int32_t.h" 3 4
typedef unsigned int u_int32_t;
# 84 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int64_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int64_t.h" 3 4
typedef unsigned long long u_int64_t;
# 85 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4


typedef int64_t register_t;





# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h" 2 3 4

typedef __darwin_intptr_t intptr_t;
# 93 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uintptr_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uintptr_t.h" 3 4
typedef unsigned long uintptr_t;
# 94 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h" 2 3 4



typedef u_int64_t user_addr_t;
typedef u_int64_t user_size_t;
typedef int64_t user_ssize_t;
typedef int64_t user_long_t;
typedef u_int64_t user_ulong_t;
typedef int64_t user_time_t;
typedef int64_t user_off_t;







typedef u_int64_t syscall_arg_t;
# 36 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h" 2 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h" 2 3 4
typedef __darwin_va_list va_list;
# 76 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h" 3 4
typedef __darwin_size_t size_t;
# 77 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_null.h" 1 3 4
# 78 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stdio.h" 1 3 4
# 37 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stdio.h" 3 4
extern "C" {

int renameat(int, const char *, int, const char *) __attribute__((availability(macosx,introduced=10.10)));






int renamex_np(const char *, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
int renameatx_np(int, const char *, int, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));



}
# 80 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 2 3 4

typedef __darwin_off_t fpos_t;
# 92 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 3 4
struct __sbuf {
 unsigned char *_base;
 int _size;
};


struct __sFILEX;
# 126 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h" 3 4
typedef struct __sFILE {
 unsigned char *_p;
 int _r;
 int _w;
 short _flags;
 short _file;
 struct __sbuf _bf;
 int _lbfsize;


 void *_cookie;
 int (* _Nullable _close)(void *);
 int (* _Nullable _read) (void *, char *, int);
 fpos_t (* _Nullable _seek) (void *, fpos_t, int);
 int (* _Nullable _write)(void *, const char *, int);


 struct __sbuf _ub;
 struct __sFILEX *_extra;
 int _ur;


 unsigned char _ubuf[3];
 unsigned char _nbuf[1];


 struct __sbuf _lb;


 int _blksize;
 fpos_t _offset;
} FILE;
# 65 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 2 3 4

extern "C" {
extern FILE *__stdinp;
extern FILE *__stdoutp;
extern FILE *__stderrp;
}
# 141 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
extern "C" {
void clearerr(FILE *);
int fclose(FILE *);
int feof(FILE *);
int ferror(FILE *);
int fflush(FILE *);
int fgetc(FILE *);
int fgetpos(FILE * , fpos_t *);
char *fgets(char * , int, FILE *);



FILE *fopen(const char * __filename, const char * __mode) __asm("_" "fopen" );

int fprintf(FILE * , const char * , ...) __attribute__((__format__ (__printf__, 2, 3)));
int fputc(int, FILE *);
int fputs(const char * , FILE * ) __asm("_" "fputs" );
size_t fread(void * __ptr, size_t __size, size_t __nitems, FILE * __stream);
FILE *freopen(const char * , const char * ,
                 FILE * ) __asm("_" "freopen" );
int fscanf(FILE * , const char * , ...) __attribute__((__format__ (__scanf__, 2, 3)));
int fseek(FILE *, long, int);
int fsetpos(FILE *, const fpos_t *);
long ftell(FILE *);
size_t fwrite(const void * __ptr, size_t __size, size_t __nitems, FILE * __stream) __asm("_" "fwrite" );
int getc(FILE *);
int getchar(void);
char *gets(char *);
void perror(const char *) __attribute__((__cold__));
int printf(const char * , ...) __attribute__((__format__ (__printf__, 1, 2)));
int putc(int, FILE *);
int putchar(int);
int puts(const char *);
int remove(const char *);
int rename (const char *__old, const char *__new);
void rewind(FILE *);
int scanf(const char * , ...) __attribute__((__format__ (__scanf__, 1, 2)));
void setbuf(FILE * , char * );
int setvbuf(FILE * , char * , int, size_t);
int sprintf(char * , const char * , ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((__availability__(swift, unavailable, message="Use snprintf instead.")));
int sscanf(const char * , const char * , ...) __attribute__((__format__ (__scanf__, 2, 3)));
FILE *tmpfile(void);

__attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead.")))

__attribute__((__deprecated__("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.")))

char *tmpnam(char *);
int ungetc(int, FILE *);
int vfprintf(FILE * , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0)));
int vprintf(const char * , va_list) __attribute__((__format__ (__printf__, 1, 0)));
int vsprintf(char * , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((__availability__(swift, unavailable, message="Use vsnprintf instead.")));
}
# 204 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
extern "C" {

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctermid.h" 1 3 4
# 26 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctermid.h" 3 4
char *ctermid(char *);
# 206 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 2 3 4




FILE *fdopen(int, const char *) __asm("_" "fdopen" );

int fileno(FILE *);
}
# 227 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
extern "C" {
int pclose(FILE *) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead.")));



FILE *popen(const char *, const char *) __asm("_" "popen" ) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead.")));

}
# 248 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
extern "C" {
int __srget(FILE *);
int __svfscanf(FILE *, const char *, va_list) __attribute__((__format__ (__scanf__, 2, 0)));
int __swbuf(int, FILE *);
}







inline __attribute__ ((__always_inline__)) int __sputc(int _c, FILE *_p) {
 if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n'))
  return (*_p->_p++ = _c);
 else
  return (__swbuf(_c, _p));
}
# 285 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
extern "C" {
void flockfile(FILE *);
int ftrylockfile(FILE *);
void funlockfile(FILE *);
int getc_unlocked(FILE *);
int getchar_unlocked(void);
int putc_unlocked(int, FILE *);
int putchar_unlocked(int);



int getw(FILE *);
int putw(int, FILE *);


__attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead.")))

__attribute__((__deprecated__("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.")))

char *tempnam(const char *__dir, const char *__prefix) __asm("_" "tempnam" );
}
# 324 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_off_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_off_t.h" 3 4
typedef __darwin_off_t off_t;
# 325 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 2 3 4

extern "C" {
int fseeko(FILE * __stream, off_t __offset, int __whence);
off_t ftello(FILE * __stream);
}



extern "C" {
int snprintf(char * __str, size_t __size, const char * __format, ...) __attribute__((__format__ (__printf__, 3, 4)));
int vfscanf(FILE * __stream, const char * __format, va_list) __attribute__((__format__ (__scanf__, 2, 0)));
int vscanf(const char * __format, va_list) __attribute__((__format__ (__scanf__, 1, 0)));
int vsnprintf(char * __str, size_t __size, const char * __format, va_list) __attribute__((__format__ (__printf__, 3, 0)));
int vsscanf(const char * __str, const char * __format, va_list) __attribute__((__format__ (__scanf__, 2, 0)));
}
# 349 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ssize_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ssize_t.h" 3 4
typedef __darwin_ssize_t ssize_t;
# 350 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h" 2 3 4

extern "C" {
int dprintf(int, const char * , ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((availability(macosx,introduced=10.7)));
int vdprintf(int, const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((availability(macosx,introduced=10.7)));
ssize_t getdelim(char ** __linep, size_t * __linecapp, int __delimiter, FILE * __stream) __attribute__((availability(macosx,introduced=10.7)));
ssize_t getline(char ** __linep, size_t * __linecapp, FILE * __stream) __attribute__((availability(macosx,introduced=10.7)));
FILE *fmemopen(void * __buf, size_t __size, const char * __mode) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
FILE *open_memstream(char **__bufp, size_t *__sizep) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
}







extern "C" {
extern const int sys_nerr;
extern const char *const sys_errlist[];

int asprintf(char ** , const char * , ...) __attribute__((__format__ (__printf__, 2, 3)));
char *ctermid_r(char *);
char *fgetln(FILE *, size_t *);
const char *fmtcheck(const char *, const char *);
int fpurge(FILE *);
void setbuffer(FILE *, char *, int);
int setlinebuf(FILE *);
int vasprintf(char ** , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0)));
FILE *zopen(const char *, const char *, int);





FILE *funopen(const void *,
                 int (* _Nullable)(void *, char *, int),
                 int (* _Nullable)(void *, const char *, int),
                 fpos_t (* _Nullable)(void *, fpos_t, int),
                 int (* _Nullable)(void *));
}
# 108 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h" 2 3
# 149 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/limits.h" 1 3
# 40 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/limits.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 41 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/limits.h" 2 3
# 44 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/limits.h" 3
# 57 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/limits.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/limits.h" 1 3
# 21 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/limits.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h" 1 3 4
# 64 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h" 1 3 4





# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/limits.h" 1 3 4
# 40 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/limits.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_limits.h" 1 3 4
# 41 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/limits.h" 2 3 4
# 7 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h" 2 3 4
# 65 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syslimits.h" 1 3 4
# 66 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h" 2 3 4
# 22 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/limits.h" 2 3
# 58 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/limits.h" 2 3
# 150 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/errno.h" 1 3
# 25 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/errno.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 26 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/errno.h" 2 3
# 29 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/errno.h" 3


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/errno.h" 1 3 4
# 23 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/errno.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/errno.h" 1 3 4
# 76 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/errno.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_errno_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_errno_t.h" 3 4
typedef int errno_t;
# 77 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/errno.h" 2 3 4


extern "C" {
extern int * __error(void);

}
# 24 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/errno.h" 2 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/errno.h" 2 3
# 151 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fcntl.h" 1 3 4
# 23 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fcntl.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 1 3 4
# 84 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mode_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mode_t.h" 3 4
typedef __darwin_mode_t mode_t;
# 85 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_pid_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_pid_t.h" 3 4
typedef __darwin_pid_t pid_t;
# 87 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4
# 116 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_sync.h" 1 3 4
# 117 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4
# 161 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_dsync.h" 1 3 4
# 162 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4
# 318 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_seek_set.h" 1 3 4
# 319 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4





# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_s_ifmt.h" 1 3 4
# 325 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4
# 343 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
struct flock {
 off_t l_start;
 off_t l_len;
 pid_t l_pid;
 short l_type;
 short l_whence;
};


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timespec.h" 1 3 4
# 33 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timespec.h" 3 4
struct timespec
{
 __darwin_time_t tv_sec;
 long tv_nsec;
};
# 352 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4






struct flocktimeout {
 struct flock fl;
 struct timespec timeout;
};
# 371 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
struct radvisory {
 off_t ra_offset;
 int ra_count;
};



typedef struct fcodeblobs {
 void *f_cd_hash;
 size_t f_hash_size;
 void *f_cd_buffer;
 size_t f_cd_size;
 unsigned int *f_out_size;
 int f_arch;
 int __padding;
} fcodeblobs_t;
# 395 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
typedef struct fsignatures {
 off_t fs_file_start;
 void *fs_blob_start;
 size_t fs_blob_size;
} fsignatures_t;
# 411 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
typedef struct fchecklv {
 off_t lv_file_start;
 size_t lv_error_message_size;
 void *lv_error_message;
} fchecklv_t;
# 427 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
typedef struct fstore {
 unsigned int fst_flags;
 int fst_posmode;
 off_t fst_offset;
 off_t fst_length;
 off_t fst_bytesalloc;
} fstore_t;


typedef struct fpunchhole {
 unsigned int fp_flags;
 unsigned int reserved;
 off_t fp_offset;
 off_t fp_length;
} fpunchhole_t;


typedef struct ftrimactivefile {
 off_t fta_offset;
 off_t fta_length;
} ftrimactivefile_t;


typedef struct fspecread {
 unsigned int fsr_flags;
 unsigned int reserved;
 off_t fsr_offset;
 off_t fsr_length;
} fspecread_t;



typedef struct fbootstraptransfer {
 off_t fbt_offset;
 size_t fbt_length;
 void *fbt_buffer;
} fbootstraptransfer_t;
# 487 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
#pragma pack(4)

struct log2phys {
 unsigned int l2p_flags;
 off_t l2p_contigbytes;


 off_t l2p_devoffset;


};

#pragma pack()
# 510 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_filesec_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_filesec_t.h" 3 4
struct _filesec;
typedef struct _filesec *filesec_t;
# 511 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h" 2 3 4

typedef enum {
 FILESEC_OWNER = 1,
 FILESEC_GROUP = 2,
 FILESEC_UUID = 3,
 FILESEC_MODE = 4,
 FILESEC_ACL = 5,
 FILESEC_GRPUUID = 6,


 FILESEC_ACL_RAW = 100,
 FILESEC_ACL_ALLOCSIZE = 101
} filesec_property_t;





extern "C" {
int open(const char *, int, ...) __asm("_" "open" );

int openat(int, const char *, int, ...) __asm("_" "openat" ) __attribute__((availability(macosx,introduced=10.10)));

int creat(const char *, mode_t) __asm("_" "creat" );
int fcntl(int, int, ...) __asm("_" "fcntl" );


int openx_np(const char *, int, filesec_t);




int open_dprotected_np( const char *, int, int, int, ...);
int flock(int, int);
filesec_t filesec_init(void);
filesec_t filesec_dup(filesec_t);
void filesec_free(filesec_t);
int filesec_get_property(filesec_t, filesec_property_t, void *);
int filesec_query_property(filesec_t, filesec_property_t, int *);
int filesec_set_property(filesec_t, filesec_property_t, const void *);
int filesec_unset_property(filesec_t, filesec_property_t) __attribute__((availability(macosx,introduced=10.6)));



}
# 24 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fcntl.h" 2 3 4
# 152 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h" 1 3 4
# 69 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_clock_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_clock_t.h" 3 4
typedef __darwin_clock_t clock_t;
# 70 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h" 2 3 4


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_time_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_time_t.h" 3 4
typedef __darwin_time_t time_t;
# 73 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h" 2 3 4


struct tm {
 int tm_sec;
 int tm_min;
 int tm_hour;
 int tm_mday;
 int tm_mon;
 int tm_year;
 int tm_wday;
 int tm_yday;
 int tm_isdst;
 long tm_gmtoff;
 char *tm_zone;
};
# 98 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h" 3 4
extern char *tzname[];


extern int getdate_err;

extern long timezone __asm("_" "timezone" );

extern int daylight;

extern "C" {
char *asctime(const struct tm *);
clock_t clock(void) __asm("_" "clock" );
char *ctime(const time_t *);
double difftime(time_t, time_t);
struct tm *getdate(const char *);
struct tm *gmtime(const time_t *);
struct tm *localtime(const time_t *);
time_t mktime(struct tm *) __asm("_" "mktime" );
size_t strftime(char * , size_t, const char * , const struct tm * ) __asm("_" "strftime" );
char *strptime(const char * , const char * , struct tm * ) __asm("_" "strptime" );
time_t time(time_t *);


void tzset(void);



char *asctime_r(const struct tm * , char * );
char *ctime_r(const time_t *, char *);
struct tm *gmtime_r(const time_t * , struct tm * );
struct tm *localtime_r(const time_t * , struct tm * );


time_t posix2time(time_t);



void tzsetwall(void);
time_t time2posix(time_t);
time_t timelocal(struct tm * const);
time_t timegm(struct tm * const);



int nanosleep(const struct timespec *__rqtp, struct timespec *__rmtp) __asm("_" "nanosleep" );
# 153 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h" 3 4
typedef enum {
_CLOCK_REALTIME __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 0,

_CLOCK_MONOTONIC __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 6,


_CLOCK_MONOTONIC_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 4,

_CLOCK_MONOTONIC_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 5,

_CLOCK_UPTIME_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 8,

_CLOCK_UPTIME_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 9,


_CLOCK_PROCESS_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 12,

_CLOCK_THREAD_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 16

} clockid_t;

__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
int clock_getres(clockid_t __clock_id, struct timespec *__res);

__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);


__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
__uint64_t clock_gettime_nsec_np(clockid_t __clock_id);


__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable)))
__attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)))
int clock_settime(clockid_t __clock_id, const struct timespec *__tp);
# 202 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h" 3 4
}
# 153 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2



# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 1 3 4
# 72 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 1 3 4
# 84 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_posix_vdisable.h" 1 3 4
# 85 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 2 3 4
# 122 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_seek_set.h" 1 3 4
# 123 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 2 3 4
# 132 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 3 4
struct accessx_descriptor {
 unsigned int ad_name_offset;
 int ad_flags;
 int ad_pad[2];
};
# 181 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint64_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint64_t.h" 3 4
typedef unsigned long long uint64_t;
# 182 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint32_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint32_t.h" 3 4
typedef unsigned int uint32_t;
# 183 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 2 3 4


extern "C" {

int getattrlistbulk(int, void *, void *, size_t, uint64_t) __attribute__((availability(macosx,introduced=10.10)));
int getattrlistat(int, const char *, void *, void *, size_t, unsigned long) __attribute__((availability(macosx,introduced=10.10)));
int setattrlistat(int, const char *, void *, void *, size_t, uint32_t) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));

}
# 201 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uid_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uid_t.h" 3 4
typedef __darwin_uid_t uid_t;
# 202 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_gid_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_gid_t.h" 3 4
typedef __darwin_gid_t gid_t;
# 203 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h" 2 3 4


extern "C" {

int faccessat(int, const char *, int, int) __attribute__((availability(macosx,introduced=10.10)));
int fchownat(int, const char *, uid_t, gid_t, int) __attribute__((availability(macosx,introduced=10.10)));
int linkat(int, const char *, int, const char *, int) __attribute__((availability(macosx,introduced=10.10)));
ssize_t readlinkat(int, const char *, char *, size_t) __attribute__((availability(macosx,introduced=10.10)));
int symlinkat(const char *, int, const char *) __attribute__((availability(macosx,introduced=10.10)));
int unlinkat(int, const char *, int) __attribute__((availability(macosx,introduced=10.10)));

}
# 73 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 2 3 4
# 83 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_useconds_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_useconds_t.h" 3 4
typedef __darwin_useconds_t useconds_t;
# 84 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 2 3 4
# 429 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 3 4
extern "C" {
void _exit(int) __attribute__((__noreturn__));
int access(const char *, int);
unsigned int
  alarm(unsigned int);
int chdir(const char *);
int chown(const char *, uid_t, gid_t);

int close(int) __asm("_" "close" );

int dup(int);
int dup2(int, int);
int execl(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execle(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execlp(const char * __file, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execv(const char * __path, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execve(const char * __file, char * const * __argv, char * const * __envp) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execvp(const char * __file, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
pid_t fork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
long fpathconf(int, int);
char *getcwd(char *, size_t);
gid_t getegid(void);
uid_t geteuid(void);
gid_t getgid(void);



int getgroups(int, gid_t []);

char *getlogin(void);
pid_t getpgrp(void);
pid_t getpid(void);
pid_t getppid(void);
uid_t getuid(void);
int isatty(int);
int link(const char *, const char *);
off_t lseek(int, off_t, int);
long pathconf(const char *, int);

int pause(void) __asm("_" "pause" );

int pipe(int [2]);

ssize_t read(int, void *, size_t) __asm("_" "read" );

int rmdir(const char *);
int setgid(gid_t);
int setpgid(pid_t, pid_t);
pid_t setsid(void);
int setuid(uid_t);

unsigned int
  sleep(unsigned int) __asm("_" "sleep" );

long sysconf(int);
pid_t tcgetpgrp(int);
int tcsetpgrp(int, pid_t);
char *ttyname(int);


int ttyname_r(int, char *, size_t) __asm("_" "ttyname_r" );




int unlink(const char *);

ssize_t write(int __fd, const void * __buf, size_t __nbyte) __asm("_" "write" );
}
# 506 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 3 4
extern "C" {
size_t confstr(int, char *, size_t) __asm("_" "confstr" );

int getopt(int, char * const [], const char *) __asm("_" "getopt" );

extern char *optarg;
extern int optind, opterr, optopt;
}
# 532 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 3 4
 extern "C" {





__attribute__((__deprecated__)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))

void *brk(const void *);
int chroot(const char *) ;


char *crypt(const char *, const char *);

void encrypt(char *, int) __asm("_" "encrypt" );



int fchdir(int);
long gethostid(void);
pid_t getpgid(pid_t);
pid_t getsid(pid_t);



int getdtablesize(void) ;
int getpagesize(void) __attribute__((__const__)) ;
char *getpass(const char *) ;




char *getwd(char *) ;


int lchown(const char *, uid_t, gid_t) __asm("_" "lchown" );

int lockf(int, int, off_t) __asm("_" "lockf" );

int nice(int) __asm("_" "nice" );

ssize_t pread(int __fd, void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pread" );

ssize_t pwrite(int __fd, const void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pwrite" );






__attribute__((__deprecated__)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))

void *sbrk(int);



pid_t setpgrp(void) __asm("_" "setpgrp" );




int setregid(gid_t, gid_t) __asm("_" "setregid" );

int setreuid(uid_t, uid_t) __asm("_" "setreuid" );

void swab(const void * , void * , ssize_t);
void sync(void);
int truncate(const char *, off_t);
useconds_t ualarm(useconds_t, useconds_t);
int usleep(useconds_t) __asm("_" "usleep" );
pid_t vfork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));


int fsync(int) __asm("_" "fsync" );

int ftruncate(int, off_t);
int getlogin_r(char *, size_t);
}
# 620 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 3 4
extern "C" {
int fchown(int, uid_t, gid_t);
int gethostname(char *, size_t);
ssize_t readlink(const char * , char * , size_t);
int setegid(gid_t);
int seteuid(uid_t);
int symlink(const char *, const char *);
}








# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 1 3 4
# 66 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/appleapiopts.h" 1 3 4
# 67 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4








# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_def.h" 1 3 4
# 49 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_def.h" 3 4
extern "C" {
typedef struct fd_set {
 __int32_t fds_bits[((((1024) % ((sizeof(__int32_t) * 8))) == 0) ? ((1024) / ((sizeof(__int32_t) * 8))) : (((1024) / ((sizeof(__int32_t) * 8))) + 1))];
} fd_set;

int __darwin_check_fd_set_overflow(int, const void *, int) __attribute__((__weak_import__));
}

inline __attribute__ ((__always_inline__)) int
__darwin_check_fd_set(int _a, const void *_b)
{
 if ((uintptr_t)&__darwin_check_fd_set_overflow != (uintptr_t) 0) {



  return __darwin_check_fd_set_overflow(_a, _b, 0);

 } else {
  return 1;
 }
}


inline __attribute__ ((__always_inline__)) int
__darwin_fd_isset(int _fd, const struct fd_set *_p)
{
 if (__darwin_check_fd_set(_fd, (const void *) _p)) {
  return _p->fds_bits[(unsigned long)_fd / (sizeof(__int32_t) * 8)] & ((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % (sizeof(__int32_t) * 8))));
 }

 return 0;
}

inline __attribute__ ((__always_inline__)) void
__darwin_fd_set(int _fd, struct fd_set *const _p)
{
 if (__darwin_check_fd_set(_fd, (const void *) _p)) {
  (_p->fds_bits[(unsigned long)_fd / (sizeof(__int32_t) * 8)] |= ((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % (sizeof(__int32_t) * 8)))));
 }
}

inline __attribute__ ((__always_inline__)) void
__darwin_fd_clr(int _fd, struct fd_set *const _p)
{
 if (__darwin_check_fd_set(_fd, (const void *) _p)) {
  (_p->fds_bits[(unsigned long)_fd / (sizeof(__int32_t) * 8)] &= ~((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % (sizeof(__int32_t) * 8)))));
 }
}
# 76 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval.h" 1 3 4
# 34 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval.h" 3 4
struct timeval
{
 __darwin_time_t tv_sec;
 __darwin_suseconds_t tv_usec;
};
# 78 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4







# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_suseconds_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_suseconds_t.h" 3 4
typedef __darwin_suseconds_t suseconds_t;
# 86 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigset_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigset_t.h" 3 4
typedef __darwin_sigset_t sigset_t;
# 87 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4
# 100 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_setsize.h" 1 3 4
# 101 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_set.h" 1 3 4
# 102 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_clr.h" 1 3 4
# 103 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_isset.h" 1 3 4
# 104 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_zero.h" 1 3 4
# 105 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_copy.h" 1 3 4
# 108 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4



extern "C" {


int pselect(int, fd_set * , fd_set * ,
    fd_set * , const struct timespec * ,
    const sigset_t * )




__asm("_" "pselect" "$1050")




;



# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_select.h" 1 3 4
# 39 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_select.h" 3 4
int select(int, fd_set * , fd_set * ,
    fd_set * , struct timeval * )




__asm("_" "select" "$1050")




;
# 130 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h" 2 3 4

}
# 636 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_dev_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_dev_t.h" 3 4
typedef __darwin_dev_t dev_t;
# 638 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uuid_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uuid_t.h" 3 4
typedef __darwin_uuid_t uuid_t;
# 640 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 2 3 4

extern "C" {
void _Exit(int) __attribute__((__noreturn__));
int accessx_np(const struct accessx_descriptor *, size_t, int *, uid_t);
int acct(const char *);
int add_profil(char *, size_t, unsigned long, unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
void endusershell(void);
int execvP(const char * __file, const char * __searchpath, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
char *fflagstostr(unsigned long);
int getdomainname(char *, int);
int getgrouplist(const char *, int, int *, int *);





# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/gethostuuid.h" 1 3 4
# 39 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/gethostuuid.h" 3 4
int gethostuuid(uuid_t, const struct timespec *) __attribute__((availability(macosx,introduced=10.5)));
# 656 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 2 3 4




mode_t getmode(const void *, mode_t);
int getpeereid(int, uid_t *, gid_t *);
int getsgroups_np(int *, uuid_t);
char *getusershell(void);
int getwgroups_np(int *, uuid_t);
int initgroups(const char *, int);
int issetugid(void);
char *mkdtemp(char *);
int mknod(const char *, mode_t, dev_t);
int mkpath_np(const char *path, mode_t omode) __attribute__((availability(macosx,introduced=10.8)));
int mkpathat_np(int dfd, const char *path, mode_t omode)
  __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)))
  __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
int mkstemp(char *);
int mkstemps(char *, int);
char *mktemp(char *);
int mkostemp(char *path, int oflags)
  __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)))
  __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
int mkostemps(char *path, int slen, int oflags)
  __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)))
  __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));

int mkstemp_dprotected_np(char *path, int dpclass, int dpflags)
  __attribute__((availability(macosx,unavailable))) __attribute__((availability(ios,introduced=10.0)))
  __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
char *mkdtempat_np(int dfd, char *path)
  __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0)))
  __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
int mkstempsat_np(int dfd, char *path, int slen)
  __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0)))
  __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
int mkostempsat_np(int dfd, char *path, int slen, int oflags)
  __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0)))
  __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
int nfssvc(int, void *);
int profil(char *, size_t, unsigned long, unsigned int);

__attribute__((__deprecated__("Use of per-thread security contexts is error-prone and discouraged.")))
int pthread_setugid_np(uid_t, gid_t);
int pthread_getugid_np( uid_t *, gid_t *);

int reboot(int);
int revoke(const char *);

__attribute__((__deprecated__)) int rcmd(char **, int, const char *, const char *, const char *, int *);
__attribute__((__deprecated__)) int rcmd_af(char **, int, const char *, const char *, const char *, int *,
  int);
__attribute__((__deprecated__)) int rresvport(int *);
__attribute__((__deprecated__)) int rresvport_af(int *, int);
__attribute__((__deprecated__)) int iruserok(unsigned long, int, const char *, const char *);
__attribute__((__deprecated__)) int iruserok_sa(const void *, int, int, const char *, const char *);
__attribute__((__deprecated__)) int ruserok(const char *, int, const char *, const char *);

int setdomainname(const char *, int);
int setgroups(int, const gid_t *);
void sethostid(long);
int sethostname(const char *, int);

void setkey(const char *) __asm("_" "setkey" );



int setlogin(const char *);
void *setmode(const char *) __asm("_" "setmode" );
int setrgid(gid_t);
int setruid(uid_t);
int setsgroups_np(int, const uuid_t);
void setusershell(void);
int setwgroups_np(int, const uuid_t);
int strtofflags(char **, unsigned long *, unsigned long *);
int swapon(const char *);
int ttyslot(void);
int undelete(const char *);
int unwhiteout(const char *);
void *valloc(size_t);

__attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
__attribute__((availability(ios,deprecated=10.0,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().")))

__attribute__((availability(macosx,deprecated=10.12,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().")))

int syscall(int, ...);

extern char *suboptarg;
int getsubopt(char **, char * const *, char **);



int fgetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(macosx,introduced=10.6)));
int fsetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(macosx,introduced=10.6)));
int getattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "getattrlist" );
int setattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "setattrlist" );
int exchangedata(const char*,const char*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int getdirentriesattr(int,void*,void*,size_t,unsigned int*,unsigned int*,unsigned int*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
# 769 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h" 3 4
struct fssearchblock;
struct searchstate;

int searchfs(const char *, struct fssearchblock *, unsigned long *, unsigned int, unsigned int, struct searchstate *) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int fsctl(const char *,unsigned long,void*,unsigned int);
int ffsctl(int,unsigned long,void*,unsigned int) __attribute__((availability(macosx,introduced=10.6)));




int fsync_volume_np(int, int) __attribute__((availability(macosx,introduced=10.8)));
int sync_volume_np(const char *, int) __attribute__((availability(macosx,introduced=10.8)));

extern int optreset;

}
# 157 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/file.h" 1 3 4
# 68 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/file.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 1 3 4
# 81 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h" 1 3 4
# 35 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/endian.h" 1 3 4
# 99 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/endian.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_endian.h" 1 3 4
# 130 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_endian.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/_OSByteOrder.h" 1 3 4
# 66 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/_OSByteOrder.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/_OSByteOrder.h" 1 3 4
# 44 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/_OSByteOrder.h" 3 4
static inline
__uint16_t
_OSSwapInt16(
 __uint16_t _data
 )
{
 return (__uint16_t)((_data << 8) | (_data >> 8));
}

static inline
__uint32_t
_OSSwapInt32(
 __uint32_t _data
 )
{

 return __builtin_bswap32(_data);




}


static inline
__uint64_t
_OSSwapInt64(
 __uint64_t _data
 )
{
 return __builtin_bswap64(_data);
}
# 67 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/_OSByteOrder.h" 2 3 4
# 131 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_endian.h" 2 3 4
# 100 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/endian.h" 2 3 4
# 36 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h" 2 3 4
# 82 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_char.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_char.h" 3 4
typedef unsigned char u_char;
# 85 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_short.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_short.h" 3 4
typedef unsigned short u_short;
# 86 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int.h" 3 4
typedef unsigned int u_int;
# 87 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4

typedef unsigned long u_long;


typedef unsigned short ushort;
typedef unsigned int uint;


typedef u_int64_t u_quad_t;
typedef int64_t quad_t;
typedef quad_t * qaddr_t;


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_caddr_t.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_caddr_t.h" 3 4
typedef char * caddr_t;
# 100 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4

typedef int32_t daddr_t;



typedef u_int32_t fixpt_t;


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blkcnt_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blkcnt_t.h" 3 4
typedef __darwin_blkcnt_t blkcnt_t;
# 108 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blksize_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blksize_t.h" 3 4
typedef __darwin_blksize_t blksize_t;
# 109 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_addr_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_addr_t.h" 3 4
typedef __uint32_t in_addr_t;
# 111 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_port_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_port_t.h" 3 4
typedef __uint16_t in_port_t;
# 112 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino_t.h" 3 4
typedef __darwin_ino_t ino_t;
# 113 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino64_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino64_t.h" 3 4
typedef __darwin_ino64_t ino64_t;
# 116 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_key_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_key_t.h" 3 4
typedef __int32_t key_t;
# 119 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_nlink_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_nlink_t.h" 3 4
typedef __uint16_t nlink_t;
# 121 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_id_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_id_t.h" 3 4
typedef __darwin_id_t id_t;
# 122 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4



typedef int32_t segsz_t;
typedef int32_t swblk_t;
# 138 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 3 4
static inline __int32_t
major(__uint32_t _x)
{
 return (__int32_t)(((__uint32_t)_x >> 24) & 0xff);
}

static inline __int32_t
minor(__uint32_t _x)
{
 return (__int32_t)((_x) & 0xffffff);
}

static inline dev_t
makedev(__uint32_t _major, __uint32_t _minor)
{
 return (dev_t)(((_major) << 24) | (_minor));
}
# 174 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h" 3 4
typedef __darwin_size_t rsize_t;
# 175 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 189 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 3 4
typedef __int32_t fd_mask;
# 215 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_attr_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_attr_t.h" 3 4
typedef __darwin_pthread_attr_t pthread_attr_t;
# 216 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_cond_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_cond_t.h" 3 4
typedef __darwin_pthread_cond_t pthread_cond_t;
# 217 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_condattr_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_condattr_t.h" 3 4
typedef __darwin_pthread_condattr_t pthread_condattr_t;
# 218 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutex_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutex_t.h" 3 4
typedef __darwin_pthread_mutex_t pthread_mutex_t;
# 219 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutexattr_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutexattr_t.h" 3 4
typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t;
# 220 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_once_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_once_t.h" 3 4
typedef __darwin_pthread_once_t pthread_once_t;
# 221 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlock_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlock_t.h" 3 4
typedef __darwin_pthread_rwlock_t pthread_rwlock_t;
# 222 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlockattr_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlockattr_t.h" 3 4
typedef __darwin_pthread_rwlockattr_t pthread_rwlockattr_t;
# 223 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_t.h" 3 4
typedef __darwin_pthread_t pthread_t;
# 224 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4



# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_key_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_key_t.h" 3 4
typedef __darwin_pthread_key_t pthread_key_t;
# 228 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4




# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsblkcnt_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsblkcnt_t.h" 3 4
typedef __darwin_fsblkcnt_t fsblkcnt_t;
# 233 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsfilcnt_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsfilcnt_t.h" 3 4
typedef __darwin_fsfilcnt_t fsfilcnt_t;
# 234 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h" 2 3 4
# 69 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/file.h" 2 3 4


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/queue.h" 1 3 4
# 72 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/file.h" 2 3 4





struct ucred;
typedef struct ucred *kauth_cred_t;
struct posix_cred;
typedef struct posix_cred *posix_cred_t;


extern "C" {

}
# 158 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h" 1 3 4
# 80 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval64.h" 1 3 4
# 34 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval64.h" 3 4
struct timeval64 {
 __int64_t tv_sec;
 __int64_t tv_usec;
};
# 81 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h" 2 3 4
# 91 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h" 3 4
struct itimerval {
 struct timeval it_interval;
 struct timeval it_value;
};
# 129 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h" 3 4
struct timezone {
 int tz_minuteswest;
 int tz_dsttime;
};
# 172 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h" 3 4
struct clockinfo {
 int hz;
 int tick;
 int tickadj;
 int stathz;
 int profhz;
};
# 187 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h" 3 4
extern "C" {


int adjtime(const struct timeval *, struct timeval *);
int futimes(int, const struct timeval *);
int lutimes(const char *, const struct timeval *) __attribute__((availability(macosx,introduced=10.5)));
int settimeofday(const struct timeval *, const struct timezone *);


int getitimer(int, struct itimerval *);
int gettimeofday(struct timeval * , void * );



int setitimer(int, const struct itimerval * ,
    struct itimerval * );
int utimes(const char *, const struct timeval *);

}
# 159 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 1 3 4
# 77 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_param.h" 1 3 4
# 29 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_param.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_param.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_param.h" 2 3 4
# 78 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/net_kev.h" 1 3 4
# 79 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 2 3 4
# 94 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sa_family_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sa_family_t.h" 3 4
typedef __uint8_t sa_family_t;
# 95 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_socklen_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_socklen_t.h" 3 4
typedef __darwin_socklen_t socklen_t;
# 96 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 2 3 4
# 106 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_iovec_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_iovec_t.h" 3 4
struct iovec {
 void * iov_base;
 size_t iov_len;
};
# 107 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 2 3 4
# 289 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
typedef __uint32_t sae_associd_t;



typedef __uint32_t sae_connid_t;
# 303 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
typedef struct sa_endpoints {
 unsigned int sae_srcif;
 const struct sockaddr *sae_srcaddr;
 socklen_t sae_srcaddrlen;
 const struct sockaddr *sae_dstaddr;
 socklen_t sae_dstaddrlen;
} sa_endpoints_t;





struct linger {
 int l_onoff;
 int l_linger;
};
# 333 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
struct so_np_extensions {
 u_int32_t npx_flags;
 u_int32_t npx_mask;
};
# 407 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
struct sockaddr {
 __uint8_t sa_len;
 sa_family_t sa_family;
 char sa_data[14];
};
# 420 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
struct sockproto {
 __uint16_t sp_family;
 __uint16_t sp_protocol;
};
# 440 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
struct sockaddr_storage {
 __uint8_t ss_len;
 sa_family_t ss_family;
 char __ss_pad1[((sizeof(__int64_t)) - sizeof(__uint8_t) - sizeof(sa_family_t))];
 __int64_t __ss_align;
 char __ss_pad2[(128 - sizeof(__uint8_t) - sizeof(sa_family_t) - ((sizeof(__int64_t)) - sizeof(__uint8_t) - sizeof(sa_family_t)) - (sizeof(__int64_t)))];
};
# 546 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
struct msghdr {
 void *msg_name;
 socklen_t msg_namelen;
 struct iovec *msg_iov;
 int msg_iovlen;
 void *msg_control;
 socklen_t msg_controllen;
 int msg_flags;
};
# 587 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
struct cmsghdr {
 socklen_t cmsg_len;
 int cmsg_level;
 int cmsg_type;

};
# 678 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h" 3 4
struct sf_hdtr {
 struct iovec *headers;
 int hdr_cnt;
 struct iovec *trailers;
 int trl_cnt;
};





extern "C" {

int accept(int, struct sockaddr * , socklen_t * )
__asm("_" "accept" );
int bind(int, const struct sockaddr *, socklen_t) __asm("_" "bind" );
int connect(int, const struct sockaddr *, socklen_t) __asm("_" "connect" );
int getpeername(int, struct sockaddr * , socklen_t * )
__asm("_" "getpeername" );
int getsockname(int, struct sockaddr * , socklen_t * )
__asm("_" "getsockname" );
int getsockopt(int, int, int, void * , socklen_t * );
int listen(int, int) __asm("_" "listen" );
ssize_t recv(int, void *, size_t, int) __asm("_" "recv" );
ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * ,
    socklen_t * ) __asm("_" "recvfrom" );
ssize_t recvmsg(int, struct msghdr *, int) __asm("_" "recvmsg" );
ssize_t send(int, const void *, size_t, int) __asm("_" "send" );
ssize_t sendmsg(int, const struct msghdr *, int) __asm("_" "sendmsg" );
ssize_t sendto(int, const void *, size_t,
    int, const struct sockaddr *, socklen_t) __asm("_" "sendto" );
int setsockopt(int, int, int, const void *, socklen_t);
int shutdown(int, int);
int sockatmark(int) __attribute__((availability(macosx,introduced=10.5)));
int socket(int, int, int);
int socketpair(int, int, int, int *) __asm("_" "socketpair" );


int sendfile(int, int, off_t, off_t *, struct sf_hdtr *, int);



void pfctlinput(int, struct sockaddr *);

__attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0)))
int connectx(int, const sa_endpoints_t *, sae_associd_t, unsigned int,
    const struct iovec *, unsigned int, size_t *, sae_connid_t *);

__attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0)))
int disconnectx(int, sae_associd_t, sae_connid_t);

}
# 160 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2



# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/poll.h" 1 3 4
# 23 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/poll.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/poll.h" 1 3 4
# 96 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/poll.h" 3 4
struct pollfd {
 int fd;
 short events;
 short revents;
};

typedef unsigned int nfds_t;




extern "C" {





extern int poll(struct pollfd *, nfds_t, int) __asm("_" "poll" );

}
# 24 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/poll.h" 2 3 4
# 164 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h" 2
# 176 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h"
extern "C" {
# 267 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h"
    typedef signed char int8;
    typedef unsigned char uint8;

    typedef short int16;
    typedef unsigned short uint16;

    typedef int int32;
    typedef unsigned int uint32;

    typedef long long int64;
    typedef unsigned long long uint64;



    typedef float float32;
    typedef double float64;
    typedef long double float128;
# 557 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h"
    struct _spk_struct_timeval32
    {
        int32 tv_sec;
        int32 tv_usec;
    };

    typedef struct _spk_struct_timeval32 STimeval32T;
# 573 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h"
    struct _spk_struct_timeval64
    {
        int64 tv_sec;
        int64 tv_usec;
    };

    typedef struct _spk_struct_timeval64 STimeval64T;
# 681 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/types.h"
}
# 440 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h" 2



extern "C" {
# 608 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesExchangeId {
    OES_EXCH_UNDEFINE = 0,
    OES_EXCH_SSE = 1,
    OES_EXCH_SZSE = 2,
    __MAX_OES_EXCH,


    OES_EXCHANGE_TYPE_SSE = OES_EXCH_SSE,

    OES_EXCHANGE_TYPE_SZSE = OES_EXCH_SZSE,

    __OES_EXCH_ID_MAX_ALIGNED4 = 4,
    __OES_EXCH_ID_MAX_ALIGNED8 = 8
} eOesExchangeIdT;





typedef enum _eOesMarketId {
    OES_MKT_UNDEFINE = 0,
    OES_MKT_SH_ASHARE = 1,
    OES_MKT_SZ_ASHARE = 2,
    OES_MKT_SH_OPTION = 3,
    OES_MKT_SZ_OPTION = 4,
    __OES_MKT_ID_MAX,


    OES_MKT_ID_UNDEFINE = OES_MKT_UNDEFINE,

    OES_MKT_ID_SH_A = OES_MKT_SH_ASHARE,

    OES_MKT_ID_SZ_A = OES_MKT_SZ_ASHARE,

    OES_MKT_ID_SH_OPT = OES_MKT_SH_OPTION,

    __OES_MKT_ID_MAX_ALIGNED8 = 8
} eOesMarketIdT;





typedef enum _eOesPlatformId {
    OES_PLATFORM_UNDEFINE = 0,
    OES_PLATFORM_CASH_AUCTION = 1,
    OES_PLATFORM_FINANCIAL_SERVICES = 2,
    OES_PLATFORM_NON_TRADE = 3,
    OES_PLATFORM_DERIVATIVE_AUCTION = 4,
    __OES_PLATFORM_ID_MAX,
    __OES_PLATFORM_ID_MAX_ALIGNED8 = 8
} eOesPlatformIdT;





typedef enum _eOesMarketState {
    OES_MKT_STATE_UNDEFINE = 0,
    OES_MKT_STATE_PRE_OPEN = 1,
    OES_MKT_STATE_OPEN_UP_COMING = 2,
    OES_MKT_STATE_OPEN = 3,
    OES_MKT_STATE_HALT = 4,
    OES_MKT_STATE_CLOSE = 5,
    __OES_MKT_STATE_MAX
} eOesMarketStateT;





typedef enum _eOesTrdSessType {
    OES_TRD_SESS_TYPE_O = 0,
    OES_TRD_SESS_TYPE_T = 1,
    OES_TRD_SESS_TYPE_C = 2,
    __OES_TRD_SESS_TYPE_MAX
} eOesTrdSessTypeT;
# 695 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesProductType {
    OES_PRODUCT_TYPE_UNDEFINE = 0,
    OES_PRODUCT_TYPE_EQUITY = 1,
    OES_PRODUCT_TYPE_BOND_STD = 2,
    OES_PRODUCT_TYPE_IPO = 3,
    OES_PRODUCT_TYPE_ALLOTMENT = 4,
    OES_PRODUCT_TYPE_OPTION = 5,

    __OES_PRODUCT_TYPE_MAX,
} eOesProductTypeT;





typedef enum _eOesSecurityType {
    OES_SECURITY_TYPE_UNDEFINE = 0,
    OES_SECURITY_TYPE_STOCK = 1,
    OES_SECURITY_TYPE_BOND = 2,
    OES_SECURITY_TYPE_ETF = 3,
    OES_SECURITY_TYPE_FUND = 4,
    OES_SECURITY_TYPE_OPTION = 5,
    OES_SECURITY_TYPE_MGR = 9,
    __OES_SECURITY_TYPE_MAX,

    __OES_SECURITY_TYPE_NOT_SUPPORT = 100
} eOesSecurityTypeT;





typedef enum _eOesSubSecurityType {
    OES_SUB_SECURITY_TYPE_UNDEFINE = 0,

    __OES_SUB_SECURITY_TYPE_STOCK_MIN = 10,
    OES_SUB_SECURITY_TYPE_STOCK_ASH = 11,
    OES_SUB_SECURITY_TYPE_STOCK_SME = 12,
    OES_SUB_SECURITY_TYPE_STOCK_GEM = 13,
    OES_SUB_SECURITY_TYPE_STOCK_KSH = 14,
    OES_SUB_SECURITY_TYPE_STOCK_KCDR = 15,
    OES_SUB_SECURITY_TYPE_STOCK_CDR = 16,
    OES_SUB_SECURITY_TYPE_STOCK_HLTCDR = 17,
    __OES_SUB_SECURITY_TYPE_STOCK_MAX,

    __OES_SUB_SECURITY_TYPE_BOND_MIN = 20,
    OES_SUB_SECURITY_TYPE_BOND_GBF = 21,
    OES_SUB_SECURITY_TYPE_BOND_CBF = 22,
    OES_SUB_SECURITY_TYPE_BOND_CPF = 23,
    OES_SUB_SECURITY_TYPE_BOND_CCF = 24,
    OES_SUB_SECURITY_TYPE_BOND_FBF = 25,
    OES_SUB_SECURITY_TYPE_BOND_PRP = 26,
    OES_SUB_SECURITY_TYPE_BOND_STD = 27,
    __OES_SUB_SECURITY_TYPE_BOND_MAX,

    __OES_SUB_SECURITY_TYPE_ETF_MIN = 30,
    OES_SUB_SECURITY_TYPE_ETF_SINGLE_MKT = 31,
    OES_SUB_SECURITY_TYPE_ETF_CROSS_MKT = 32,
    OES_SUB_SECURITY_TYPE_ETF_BOND = 33,
    OES_SUB_SECURITY_TYPE_ETF_CURRENCY = 34,
    OES_SUB_SECURITY_TYPE_ETF_CROSS_BORDER = 35,
    OES_SUB_SECURITY_TYPE_ETF_GOLD = 36,
    __OES_SUB_SECURITY_TYPE_ETF_MAX,

    __OES_SUB_SECURITY_TYPE_FUND_MIN = 40,
    OES_SUB_SECURITY_TYPE_FUND_LOF = 41,
    OES_SUB_SECURITY_TYPE_FUND_CEF = 42,
    OES_SUB_SECURITY_TYPE_FUND_OEF = 43,
    OES_SUB_SECURITY_TYPE_FUND_GRADED = 44,
    __OES_SUB_SECURITY_TYPE_FUND_MAX,

    __OES_SUB_SECURITY_TYPE_OPTION_MIN = 50,
    OES_SUB_SECURITY_TYPE_OPTION_ETF = 51,
    OES_SUB_SECURITY_TYPE_OPTION_STOCK = 52,
    __OES_SUB_SECURITY_TYPE_OPTION_MAX,

    __OES_SUB_SECURITY_TYPE_MGR_MIN = 90,
    OES_SUB_SECURITY_TYPE_MGR_SSE_DESIGNATION
                                            = 91,
    OES_SUB_SECURITY_TYPE_MGR_SSE_RECALL_DESIGNATION
                                            = 92,
    OES_SUB_SECURITY_TYPE_MGR_SZSE_DESIGNATION
                                            = 93,
    OES_SUB_SECURITY_TYPE_MGR_SZSE_CANCEL_DESIGNATION
                                            = 94,
    OES_SUB_SECURITY_TYPE_MGR_OPT_EXERCISE_TRANSFER
                                            = 95,
    __OES_SUB_SECURITY_TYPE_MGR_MAX ,

    __OES_SUB_SECURITY_TYPE_MAX = __OES_SUB_SECURITY_TYPE_MGR_MAX
} eOesSubSecurityTypeT;





typedef enum _eOesSecurityLevel {
    OES_SECURITY_LEVEL_UNDEFINE = 0,
    OES_SECURITY_LEVEL_N = 1,
    OES_SECURITY_LEVEL_XST = 2,
    OES_SECURITY_LEVEL_ST = 3,
    OES_SECURITY_LEVEL_P = 4,
    OES_SECURITY_LEVEL_T = 5,
    OES_SECURITY_LEVEL_U = 6,
    OES_SECURITY_LEVEL_B = 7,
    __OES_SECURITY_LEVEL_MAX
} eOesSecurityLevelT;





typedef enum _eOesSecurityRiskLevel {
    OES_RISK_LEVEL_VERY_LOW = 0,
    OES_RISK_LEVEL_LOW = 1,
    OES_RISK_LEVEL_MEDIUM_LOW = 2,
    OES_RISK_LEVEL_MEDIUM = 3,
    OES_RISK_LEVEL_MEDIUM_HIGH = 4,
    OES_RISK_LEVEL_HIGH = 5,
    OES_RISK_LEVEL_VERY_HIGH = 6,
    __OES_RISK_LEVEL_MAX
} eOesSecurityRiskLevelT;





typedef enum _eOesSecuritySuspFlag {
    OES_SUSPFLAG_NONE = 0x0,
    OES_SUSPFLAG_EXCHANGE = 0x1,
    OES_SUSPFLAG_BROKER = 0x2,
    __OES_SUSPFLAG_OTHER
} eOesSecuritySuspFlagT;





typedef enum _eOesLotType {
    OES_LOT_TYPE_UNDEFINE = 0,
    OES_LOT_TYPE_FAILED = 1,
    OES_LOT_TYPE_ASSIGNMENT = 2,
    OES_LOT_TYPE_LOTTERY = 3,
    __OES_LOT_TYPE_MAX
} eOesLotTypeT;





typedef enum _eOesLotRejReason {
    OES_LOT_REJ_REASON_DUPLICATE = 1,
    OES_LOT_REJ_REASON_INVALID_DUPLICATE = 2,
    OES_LOT_REJ_REASON_OFFLINE_FIRST = 3,
    OES_LOT_REJ_REASON_BAD_RECORD = 4,
    OES_LOT_REJ_REASON_UNKNOW = 5
} eOesLotRejReasonT;





typedef enum _eOesSecurityIssueType {
    OES_ISSUE_TYPE_UNDEFINE = 0,
    OES_ISSUE_TYPE_MKT_QUOTA = 1,
    OES_ISSUE_TYPE_CASH = 2,
    OES_ISSUE_TYPE_CREDIT = 3
} eOesSecurityIssueTypeT;
# 873 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesOrdStatus {
    OES_ORD_STATUS_PENDING = 0,
    OES_ORD_STATUS_NEW = 1,

    OES_ORD_STATUS_DECLARED = 2,
    OES_ORD_STATUS_PARTIALLY_FILLED = 3,

    __OES_ORD_STATUS_FINAL_MIN = 4,
    OES_ORD_STATUS_CANCEL_DONE = 5,
    OES_ORD_STATUS_PARTIALLY_CANCELED = 6,
    OES_ORD_STATUS_CANCELED = 7,
    OES_ORD_STATUS_FILLED = 8,
    __OES_ORD_STATUS_VALID_MAX,

    __OES_ORD_STATUS_INVALID_MIN = 10,
    OES_ORD_STATUS_INVALID_OES = 11,
    OES_ORD_STATUS_INVALID_SH_F = 12,
    OES_ORD_STATUS_INVALID_SH_E = 13,
    OES_ORD_STATUS_INVALID_SH_COMM = 14,
    OES_ORD_STATUS_INVALID_SZ_F = 15,
    OES_ORD_STATUS_INVALID_SZ_E = 16,
    OES_ORD_STATUS_INVALID_SZ_REJECT = 17,
    OES_ORD_STATUS_INVALID_SZ_TRY_AGAIN = 18,
    __OES_ORD_STATUS_INVALID_MAX,




    OES_ORD_STATUS_NORMAL = OES_ORD_STATUS_NEW,
    OES_ORD_STATUS_DECLARING = OES_ORD_STATUS_NEW,
    __OES_ORD_STATUS_INVALID_OES = OES_ORD_STATUS_INVALID_OES

} eOesOrdStatusT;
# 948 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesOrdType {
    OES_ORD_TYPE_LMT = 0,
    OES_ORD_TYPE_LMT_FOK = 1,
    __OES_ORD_TYPE_LMT_MAX,

    OES_ORD_TYPE_MTL_BEST_5 = 10,
    OES_ORD_TYPE_MTL_BEST = 11,
    OES_ORD_TYPE_MTL_SAMEPARTY_BEST = 12,
    OES_ORD_TYPE_MTL = 13,
    __OES_ORD_TYPE_MTL_MAX,

    OES_ORD_TYPE_FAK_BEST_5 = 20,
    OES_ORD_TYPE_FAK = 21,
    __OES_ORD_TYPE_FAK_MAX,

    OES_ORD_TYPE_FOK = 30,
    __OES_ORD_TYPE_FOK_MAX,
    __OES_ORD_TYPE_MAX,
    __OES_ORD_TYPE_MAX_ALIGNED = 32
} eOesOrdTypeT;
# 979 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesOrdTypeSh {

    OES_ORD_TYPE_SH_LMT = OES_ORD_TYPE_LMT,


    OES_ORD_TYPE_SH_MTL_BEST_5 = OES_ORD_TYPE_MTL_BEST_5,

    OES_ORD_TYPE_SH_MTL_BEST = OES_ORD_TYPE_MTL_BEST,

    OES_ORD_TYPE_SH_MTL_SAMEPARTY_BEST = OES_ORD_TYPE_MTL_SAMEPARTY_BEST,

    OES_ORD_TYPE_SH_FAK_BEST_5 = OES_ORD_TYPE_FAK_BEST_5
} eOesOrdTypeShT;
# 1003 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesOrdTypeShOpt {

    OES_ORD_TYPE_SHOPT_LMT = OES_ORD_TYPE_LMT,

    OES_ORD_TYPE_SHOPT_LMT_FOK = OES_ORD_TYPE_LMT_FOK,


    OES_ORD_TYPE_SHOPT_MTL = OES_ORD_TYPE_MTL,

    OES_ORD_TYPE_SHOPT_FAK = OES_ORD_TYPE_FAK,

    OES_ORD_TYPE_SHOPT_FOK = OES_ORD_TYPE_FOK,




    OES_ORD_TYPE_SH_LMT_FOK = OES_ORD_TYPE_SHOPT_LMT_FOK,
    OES_ORD_TYPE_SH_FOK = OES_ORD_TYPE_SHOPT_FOK
} eOesOrdTypeShOptT;
# 1033 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesOrdTypeSz {

    OES_ORD_TYPE_SZ_LMT = OES_ORD_TYPE_LMT,

    OES_ORD_TYPE_SZ_LMT_FOK = OES_ORD_TYPE_LMT_FOK,


    OES_ORD_TYPE_SZ_MTL_BEST = OES_ORD_TYPE_MTL_BEST,

    OES_ORD_TYPE_SZ_MTL_SAMEPARTY_BEST = OES_ORD_TYPE_MTL_SAMEPARTY_BEST,

    OES_ORD_TYPE_SZ_FAK_BEST_5 = OES_ORD_TYPE_FAK_BEST_5,

    OES_ORD_TYPE_SZ_FAK = OES_ORD_TYPE_FAK,

    OES_ORD_TYPE_SZ_FOK = OES_ORD_TYPE_FOK
} eOesOrdTypeSzT;





typedef enum _eOesBuySellType {
    OES_BS_TYPE_UNDEFINE = 0,

    OES_BS_TYPE_BUY = 1,
    OES_BS_TYPE_SELL = 2,
    OES_BS_TYPE_CREATION = 3,
    OES_BS_TYPE_REDEMPTION = 4,
    OES_BS_TYPE_CREDIT_BUY = 5,
    OES_BS_TYPE_CREDIT_SELL = 6,
    OES_BS_TYPE_SUBSCRIPTION = 7,
    OES_BS_TYPE_ALLOTMENT = 8,
    __OES_BS_TYPE_MAX_SPOT,


    __OES_BS_TYPE_MIN_OPTION = 10,
    OES_BS_TYPE_BUY_OPEN = 11,
    OES_BS_TYPE_SELL_CLOSE = 12,
    OES_BS_TYPE_SELL_OPEN = 13,
    OES_BS_TYPE_BUY_CLOSE = 14,
    OES_BS_TYPE_COVERED_OPEN = 15,
    OES_BS_TYPE_COVERED_CLOSE = 16,
    OES_BS_TYPE_OPTION_EXERCISE = 17,
    OES_BS_TYPE_UNDERLYING_FREEZE = 18,
    OES_BS_TYPE_UNDERLYING_UNFREEZE = 19,
    __OES_BS_TYPE_MAX_OPTION,


    OES_BS_TYPE_CANCEL = 30,
    __OES_BS_TYPE_MAX_TRADING,





    OES_BS_TYPE_SSE_DESIGNATION = 41,
    OES_BS_TYPE_SSE_RECALL_DESIGNATION = 42,
    OES_BS_TYPE_SZSE_DESIGNATION = 43,
    OES_BS_TYPE_SZSE_CANCEL_DESIGNATION = 44,

    OES_BS_TYPE_B = OES_BS_TYPE_BUY,
    OES_BS_TYPE_S = OES_BS_TYPE_SELL,
    OES_BS_TYPE_KB = OES_BS_TYPE_CREATION,
    OES_BS_TYPE_KS = OES_BS_TYPE_REDEMPTION,
    OES_BS_TYPE_CB = OES_BS_TYPE_CREDIT_BUY,
    OES_BS_TYPE_CS = OES_BS_TYPE_CREDIT_SELL,

    OES_BS_TYPE_BO = OES_BS_TYPE_BUY_OPEN,
    OES_BS_TYPE_BC = OES_BS_TYPE_BUY_CLOSE,
    OES_BS_TYPE_SO = OES_BS_TYPE_SELL_OPEN,
    OES_BS_TYPE_SC = OES_BS_TYPE_SELL_CLOSE,
    OES_BS_TYPE_CO = OES_BS_TYPE_COVERED_OPEN,
    OES_BS_TYPE_CC = OES_BS_TYPE_COVERED_CLOSE,
    OES_BS_TYPE_TE = OES_BS_TYPE_OPTION_EXERCISE,
    OES_BS_TYPE_UF = OES_BS_TYPE_UNDERLYING_FREEZE,
    OES_BS_TYPE_UU = OES_BS_TYPE_UNDERLYING_UNFREEZE

} eOesBuySellTypeT;





typedef enum _eOesOrdDir {
    OES_ORD_DIR_BUY = 0,
    OES_ORD_DIR_SELL = 1,
    __OES_ORD_DIR_MAX
} eOesOrdDirT;
# 1135 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesTrdCnfmType {
    OES_TRDCNFM_TYPE_NORMAL = 0,

    OES_TRDCNFM_TYPE_ETF_FIRST = 1,
    OES_TRDCNFM_TYPE_ETF_CMPOENT = 2,
    OES_TRDCNFM_TYPE_ETF_CASH = 3,
    OES_TRDCNFM_TYPE_ETF_LAST = 4,
    __OES_TRDCNFM_TYPE_ETF_MAX,

    OES_TRDCNFM_TYPE_OPT_QP1 = 11,
    OES_TRDCNFM_TYPE_OPT_CV1 = 12,
    __OES_TRDCNFM_TYPE_OPT_MAX,

    __OES_TRDCNFM_TYPE_MAX = __OES_TRDCNFM_TYPE_OPT_MAX,




    OES_ETF_TRDCNFM_TYPE_NONE = OES_TRDCNFM_TYPE_NORMAL,
    OES_ETF_TRDCNFM_TYPE_ETF_FIRST = OES_TRDCNFM_TYPE_ETF_FIRST,
    OES_ETF_TRDCNFM_TYPE_CMPOENT = OES_TRDCNFM_TYPE_ETF_CMPOENT,
    OES_ETF_TRDCNFM_TYPE_CASH = OES_TRDCNFM_TYPE_ETF_CASH,
    OES_ETF_TRDCNFM_TYPE_ETF_LAST = OES_TRDCNFM_TYPE_ETF_LAST,
    __OES_ETF_TRDCNFM_TYPE_MAX = __OES_TRDCNFM_TYPE_ETF_MAX
} eOesTrdCnfmTypeT;





typedef enum _eOesEtfSubFlag {
    OES_ETF_SUBFLAG_FORBID_SUB = 0,
    OES_ETF_SUBFLAG_ALLOW_SUB = 1,

    OES_ETF_SUBFLAG_MUST_SUB = 2,
    OES_ETF_SUBFLAG_SZ_REFUND_SUB = 3,
    OES_ETF_SUBFLAG_SZ_MUST_SUB = 4,
    OES_ETF_SUBFLAG_OTHER_REFUND_SUB = 5,
    OES_ETF_SUBFLAG_OTHER_MUST_SUB = 6
} eOesEtfSubFlagT;





typedef enum _eOesExecType {
    OES_EXECTYPE_UNDEFINE = 0,
    OES_EXECTYPE_INSERT = 1,
    OES_EXECTYPE_CONFIRMED = 2,
    OES_EXECTYPE_CANCELLED = 3,
    OES_EXECTYPE_AUTO_CANCELLED = 4,
    OES_EXECTYPE_REJECT = 5,
    OES_EXECTYPE_TRADE = 6,
    __OES_EXECTYPE_MAX
} eOesExecTypeT;
# 1200 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesCurrType {
    OES_CURR_TYPE_RMB = 0,
    OES_CURR_TYPE_HKD = 1,
    OES_CURR_TYPE_USD = 2,
    __OES_CURR_TYPE_MAX
} eOesCurrTypeT;





typedef enum _eOesFeeType {
    OES_FEE_TYPE_EXCHANGE_STAMP = 0x1,
    OES_FEE_TYPE_EXCHANGE_TRANSFER = 0x2,
    OES_FEE_TYPE_EXCHANGE_SETTLEMENT = 0x3,
    OES_FEE_TYPE_EXCHANGE_TRADE_RULE = 0x4,
    OES_FEE_TYPE_EXCHANGE_EXCHANGE = 0x5,
    OES_FEE_TYPE_EXCHANGE_ADMINFER = 0x6,
    OES_FEE_TYPE_EXCHANGE_OTHER = 0x7,
    __OES_FEE_TYPE_EXCHANGE_MAX,

    OES_FEE_TYPE_BROKER_BACK_END = 0x11
} eOesFeeTypeT;





typedef enum _eOesCalcFeeMode {
    OES_CALC_FEE_MODE_AMOUNT = 0,
    OES_CALC_FEE_MODE_QTY = 1,
    OES_CALC_FEE_MODE_ORD = 2
} eOesCalcFeeModeT;





typedef enum _eOesFundTrsfDirect {
    OES_FUND_TRSF_DIRECT_IN = 0,
    OES_FUND_TRSF_DIRECT_OUT = 1
} eOesFundTrsfDirectT;





typedef enum _eOesFundTrsfType {
    OES_FUND_TRSF_TYPE_OES_BANK = 0,
    OES_FUND_TRSF_TYPE_OES_COUNTER = 1,
    OES_FUND_TRSF_TYPE_COUNTER_BANK = 2,
    __OES_FUND_TRSF_TYPE_MAX
} eOesFundTrsfTypeT;





typedef enum _eOesFundTrsfStatus {
    OES_FUND_TRSF_STS_UNDECLARED = 0,
    OES_FUND_TRSF_STS_DECLARED = 1,
    OES_FUND_TRSF_STS_WAIT_DONE = 2,
    OES_FUND_TRSF_STS_DONE = 3,

    __OES_FUND_TRSF_STS_ROLLBACK_MIN = 5,
    OES_FUND_TRSF_STS_UNDECLARED_ROLLBACK = 6,
    OES_FUND_TRSF_STS_DECLARED_ROLLBACK = 7,

    __OES_FUND_TRSF_STS_INVALID_MIN = 10,
    OES_FUND_TRSF_STS_INVALID_OES = 11,
    OES_FUND_TRSF_STS_INVALID_COUNTER = 12,
    OES_FUND_TRSF_STS_SUSPENDED = 13
} eOesFundTrsfStatusT;
# 1283 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesBusinessScope {
    OES_BIZ_SCOPE_UNDEFINE = 0x0,
    OES_BIZ_SCOPE_STOCK = 0x01,
    OES_BIZ_SCOPE_OPTION = 0x02,

    OES_BIZ_SCOPE_ALL = 0xFF
} eOesBusinessScopeT;






typedef enum _eOesAcctType {
    OES_ACCT_TYPE_NORMAL = 0,
    OES_ACCT_TYPE_CREDIT = 1,
    OES_ACCT_TYPE_OPTION = 2,
    __OES_ACCT_TYPE_MAX,
    __OES_ACCT_TYPE_MAX_ALIGNED4 = 4,
    __OES_ACCT_TYPE_MAX_ALIGNED8 = 8
} eOesAcctTypeT;






typedef enum _eOesCashType {

    OES_CASH_TYPE_SPOT = OES_ACCT_TYPE_NORMAL,

    OES_CASH_TYPE_CREDIT = OES_ACCT_TYPE_CREDIT,

    OES_CASH_TYPE_OPTION = OES_ACCT_TYPE_OPTION,

    __OES_CASH_TYPE_MAX = __OES_ACCT_TYPE_MAX,

    __OES_CASH_TYPE_MAX_ALIGNED4 = __OES_ACCT_TYPE_MAX_ALIGNED4,

    __OES_CASH_TYPE_MAX_ALIGNED8 = __OES_ACCT_TYPE_MAX_ALIGNED8,


    OES_CASH_TYPE_CRE = OES_CASH_TYPE_CREDIT,
    OES_CASH_TYPE_OPT = OES_CASH_TYPE_OPTION,
} eOesCashTypeT;





typedef enum _eOesAcctStatus {
    OES_ACCT_STATUS_NORMAL = 0,
    OES_ACCT_STATUS_DISABLED = 1,
    OES_ACCT_STATUS_LOCKED = 2
} eOesAcctStatusT;





typedef enum _eOesTradingPermission {
    OES_PERMIS_MARKET_ORDER = (1 << 1),
    OES_PERMIS_STRUCTURED_FUND = (1 << 2),
    OES_PERMIS_BOND_QUALIFIED_INVESTOR = (1 << 3),
    OES_PERMIS_XXX4 = (1 << 4),

    OES_PERMIS_DELISTING = (1 << 5),
    OES_PERMIS_RISK_WARNING = (1 << 6),

    OES_PERMIS_SINGLE_MARKET_ETF = (1 << 7),
    OES_PERMIS_CROSS_BORDER_ETF = (1 << 8),
    OES_PERMIS_CROSS_MARKET_ETF = (1 << 9),
    OES_PERMIS_CURRENCY_ETF = (1 << 10),

    OES_PERMIS_STOCK_PLEDGE_REPURCHASE = (1 << 11),
    OES_PERMIS_PLEDGE_REPURCHASE = (1 << 12),

    OES_PERMIS_GEM = (1 << 13),
    OES_PERMIS_SH_HK_STOCK_CONNECT = (1 << 14),
    OES_PERMIS_SZ_HK_STOCK_CONNECT = (1 << 15),

    OES_PERMIS_HLTCDR = (1 << 16),
    OES_PERMIS_CDR = (1 << 17),
    OES_PERMIS_INNOVATION = (1 << 18),
    OES_PERMIS_KSH = (1 << 19),

    __OES_PERMIS_ALL = 0xFFFFFFFF
} eOesTradingPermissionT;





typedef enum _eOesTradingLimit {
    OES_LIMIT_BUY = (1 << 1),
    OES_LIMIT_SELL = (1 << 2),
    OES_LIMIT_RECALL_DESIGNATION = (1 << 3),
    OES_LIMIT_DESIGNATION = (1 << 4),

    OES_LIMIT_REPO = (1 << 5),
    OES_LIMIT_REVERSE_REPO = (1 << 6),
    OES_LIMIT_SUBSCRIPTION = (1 << 7),
    OES_LIMIT_CREDIT_BUY = (1 << 8),
    OES_LIMIT_CREDIT_SELL = (1 << 9),

    OES_LIMIT_BUY_OPEN = (1 << 10),
    OES_LIMIT_SELL_CLOSE = (1 << 11),
    OES_LIMIT_SELL_OPEN = (1 << 12),
    OES_LIMIT_BUY_CLOSE = (1 << 13),
    OES_LIMIT_COVERED_OPEN = (1 << 14),
    OES_LIMIT_COVERED_CLOSE = (1 << 15),
    OES_LIMIT_UNDERLYING_FREEZE = (1 << 16),
    OES_LIMIT_UNDERLYING_UNFREEZE = (1 << 17),
    OES_LIMIT_OPTION_EXERCISE = (1 << 18),

    __OES_LIMIT_ALL = 0xFFFFFFFF
} eOesTradingLimitT;





typedef enum _eOesQualificationClass {
    OES_QUALIFICATION_PUBLIC_INVESTOR = 0,
    OES_QUALIFICATION_QUALIFIED_INVESTOR = 1,
    OES_QUALIFICATION_QUALIFIED_INSTITUTIONAL
                                            = 2
} eOesQualificationClassT;
# 1423 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesInvestorClass {
    OES_INVESTOR_CLASS_NORMAL = 0,
    OES_INVESTOR_CLASS_PROFESSIONAL_A = 1,
    OES_INVESTOR_CLASS_PROFESSIONAL_B = 2,
    OES_INVESTOR_CLASS_PROFESSIONAL_C = 3
} eOesInvestorClassT;





typedef enum _eOesCustType {
    OES_CUST_TYPE_PERSONAL = 0,
    OES_CUST_TYPE_INSTITUTION = 1,
    OES_CUST_TYPE_PROPRIETARY = 2,
    OES_CUST_TYPE_PRODUCT = 3,
    OES_CUST_TYPE_MKT_MAKER = 4,
    OES_CUST_TYPE_OTHERS = 5,
    __OES_CUST_TYPE_MAX
} eOesCustTypeT;





typedef enum _eOesOwnerType {
    OES_OWNER_TYPE_UNDEFINE = 0,
    OES_OWNER_TYPE_PERSONAL = 1,
    OES_OWNER_TYPE_EXCHANGE = 101,
    OES_OWNER_TYPE_MEMBER = 102,
    OES_OWNER_TYPE_INSTITUTION = 103,
    OES_OWNER_TYPE_PROPRIETARY = 104,
    OES_OWNER_TYPE_MKT_MAKER = 105,
    OES_OWNER_TYPE_SETTLEMENT = 106,
    __OES_OWNER_TYPE_MAX
} eOesOwnerTypeT;





typedef enum _eOesClientType {
    OES_CLIENT_TYPE_UNDEFINED = 0,
    OES_CLIENT_TYPE_INVESTOR = 1,
    OES_CLIENT_TYPE_VIRTUAL = 2
} eOesClientTypeT;





typedef enum _eOesClientStatus {
    OES_CLIENT_STATUS_UNACTIVATED = 0,
    OES_CLIENT_STATUS_ACTIVATED = 1,
    OES_CLIENT_STATUS_PAUSE = 2,
    OES_CLIENT_STATUS_SUSPENDED = 3,
    OES_CLIENT_STATUS_CANCELLED = 4
} eOesClientStatusT;
# 1491 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef enum _eOesOptContractType {
    OES_OPT_CONTRACT_TYPE_UNDEFINE = 0,
    OES_OPT_CONTRACT_TYPE_CALL = 1,
    OES_OPT_CONTRACT_TYPE_PUT = 2,
    __OES_OPT_CONTRACT_TYPE_MAX
} eOesOptContractTypeT;





typedef enum _eOesOptLimitOpenFlag {
    OES_OPT_LIMIT_OPEN_FLAG_NORMAL = 0,
    OES_OPT_LIMIT_OPEN_FLAG_LIMITED = 1
} eOesOptLimitOpenFlagT;





typedef enum _eOesOptExerciseType {
    OES_OPT_EXERCISE_TYPE_E = 0,
    OES_OPT_EXERCISE_TYPE_A = 1,
    OES_OPT_EXERCISE_TYPE_B = 2,
    __OES_OPT_EXERCISE_TYPE_MAX
} eOesOptExerciseTypeT;





typedef enum _eOesOptDeliveryType {
    OES_OPT_DELIVERY_TYPE_UNDEFINE = 0,
    OES_OPT_DELIVERY_TYPE_SECURITY = 1,
    OES_OPT_DELIVERY_TYPE_CASH = 2,
    __OES_OPT_DELIVERY_TYPE_MAX
} eOesOptDeliveryTypeT;





typedef enum _eOesOptPositionType {
    OES_OPT_POSITION_TYPE_UNDEFINE = 0,
    OES_OPT_POSITION_TYPE_LONG = 1,
    OES_OPT_POSITION_TYPE_SHORT = 2,
    OES_OPT_POSITION_TYPE_COVERED = 3,
    __OES_OPT_POSITION_TYPE_MAX
} eOesOptPositionTypeT;





typedef enum _eOesOptInvLevel {
    OES_OPT_INV_LEVEL_UNDEFINE = 0,
    OES_OPT_INV_LEVEL_1 = 1,
    OES_OPT_INV_LEVEL_2 = 2,
    OES_OPT_INV_LEVEL_3 = 3,
    __OES_OPT_INV_LEVEL_MAX
} eOesOptInvLevelT;





typedef enum _eOesPositionEffect {
    OES_POSITION_EFFECT_UNDEFINE = 0,
    OES_POSITION_EFFECT_OPEN = 1,
    OES_POSITION_EFFECT_CLOSE = 2,
    __OES_POSITION_EFFECT_MAX
} eOesPositionEffectT;





typedef enum _eOesNotifySource {
    OES_NOTIFY_SOURCE_UNDEFINE = 0,
    OES_NOTIFY_SOURCE_OES = 1,
    OES_NOTIFY_SOURCE_MON = 2,
    OES_NOTIFY_SOURCE_BROKER = 3,
    OES_NOTIFY_SOURCE_EXCHANGE = 4,
    OES_NOTIFY_SOURCE_CSDC = 5,
    __OES_NOTIFY_SOURCE_MAX
} eOesNotifySourceT;





typedef enum _eOesNotifyType {
    OES_NOTIFY_TYPE_UNDEFINE = 0,
    OES_NOTIFY_TYPE_CONTRACT_EXPIRE = 1,
    OES_NOTIFY_TYPE_CONTRACT_ADJUSTED = 2,
    OES_NOTIFY_TYPE_UNDERLYING_DR_PROXIMITY = 3,
    OES_NOTIFY_TYPE_EXERCISE_DATE_PROXIMITY = 4,
    OES_NOTIFY_TYPE_EXERCISED_POSSIBILITY = 5,
    OES_NOTIFY_TYPE_EXERCISE_ASSIGNED = 6,
    OES_NOTIFY_TYPE_COVERED_NOT_ENOUGH = 7,
    OES_NOTIFY_TYPE_DELIVERY_NOT_ENOUGH = 8,
    OES_NOTIFY_TYPE_MARGIN_CALL = 9,
    OES_NOTIFY_TYPE_FORCED_CLOSE = 10,
    OES_NOTIFY_TYPE_OTHERS = 100,
    __OES_NOTIFY_TYPE_MAX
} eOesNotifyTypeT;





typedef enum _eOesNotifyLevel {
    OES_NOTIFY_LEVEL_UNDEFINE = 0,
    OES_NOTIFY_LEVEL_LOW = 1,
    OES_NOTIFY_LEVEL_GENERAL = 2,
    OES_NOTIFY_LEVEL_IMPORTANT = 3,
    OES_NOTIFY_LEVEL_URGENT = 4,
    __OES_NOTIFY_LEVEL_MAX
} eOesNotifyLevelT;





typedef enum _eOesNotifyScope {
    OES_NOTIFY_SCOPE_UNDEFINE = 0,
    OES_NOTIFY_SCOPE_CUST = 1,
    OES_NOTIFY_SCOPE_ALL = 2,
    __OES_NOTIFY_SCOPE_MAX
} eOesNotifyScopeT;
# 1932 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOrdReq {
    int32 clSeqNo; uint8 mktId; uint8 ordType; uint8 bsType; uint8 __ORD_BASE_INFO_filler; char invAcctId[(16)]; char securityId[(16)]; int32 ordQty; int32 ordPrice; int64 origClOrdId; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo
    ; STimeval32T __ordReqOrigSendTime;
} OesOrdReqT;
# 1948 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOrdCancelReq {
    int32 clSeqNo; uint8 mktId; uint8 __ORD_CANCEL_BASE_INFO_filler1[3]; char invAcctId[(16)]; char securityId[(16)]; int32 origClSeqNo; int8 origClEnvId; uint8 __ORD_CANCEL_BASE_INFO_filler2[3]; int64 origClOrdId; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo
    ; STimeval32T __ordReqOrigSendTime;
} OesOrdCancelReqT;
# 1964 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOrdReject {
    int32 clSeqNo; uint8 mktId; uint8 ordType; uint8 bsType; uint8 __ORD_BASE_INFO_filler; char invAcctId[(16)]; char securityId[(16)]; int32 ordQty; int32 ordPrice; int64 origClOrdId; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo
    ; STimeval32T __ordReqOrigSendTime;


    int32 origClSeqNo;

    int8 origClEnvId;

    int8 clEnvId;

    int16 clientId;


    int32 ordDate;

    int32 ordTime;


    int32 ordRejReason;

    int32 __filler;
} OesOrdRejectT;
# 2002 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOrdCnfm {
    int32 clSeqNo; uint8 mktId; uint8 ordType; uint8 bsType; uint8 __ORD_BASE_INFO_filler; char invAcctId[(16)]; char securityId[(16)]; int32 ordQty; int32 ordPrice; int64 origClOrdId; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo ; STimeval32T __ordReqOrigSendTime; int64 clOrdId; int16 clientId; int8 clEnvId; int8 origClEnvId; int32 origClSeqNo; int32 ordDate; int32 ordTime; int32 ordCnfmTime; uint8 ordStatus; uint8 ordCnfmSts; uint8 securityType; uint8 subSecurityType; uint8 __platformId; uint8 __tgwGrpNo; uint8 __tgwPartitionNo; uint8 productType; char exchOrdId[(17)]; uint8 __declareFlag; uint8 __repeatFlag; uint8 ownerType; int64 frzAmt; int64 frzInterest; int64 frzFee; int64 cumAmt; int64 cumInterest; int64 cumFee; int32 cumQty; int32 canceledQty; int32 ordRejReason; int32 exchErrCode; int32 pbuId; int32 branchId; int32 __rowNum; uint32 __recNum ; STimeval32T __ordReqOrigRecvTime; STimeval32T __ordReqCollectedTime; STimeval32T __ordReqActualDealTime; STimeval32T __ordReqProcessedTime; STimeval32T __ordCnfmOrigRecvTime; STimeval32T __ordCnfmCollectedTime; STimeval32T __ordCnfmActualDealTime; STimeval32T __ordCnfmProcessedTime; STimeval32T __ordDeclareTime; STimeval32T __ordDeclareDoneTime; STimeval32T __pushingTime;
    int64 frzMargin; int64 cumMargin; char __ORD_CNFM_EXT_reserve[24];
} OesOrdCnfmT;
# 2216 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesTrdBaseInfo {
    int64 exchTrdNum; uint8 mktId; uint8 trdSide; uint8 __platformId; uint8 __trdCnfmType; uint32 __etfTrdCnfmSeq; char invAcctId[(16)]; char securityId[(16)]; int32 trdDate; int32 trdTime; int32 trdQty; int32 trdPrice; int64 trdAmt; int64 clOrdId; int32 cumQty; int32 __rowNum; uint8 __tgwGrpNo; uint8 __isTrsfInCashAvailable; uint8 __tgwPartitionNo; uint8 productType; int32 origOrdQty; int32 pbuId; int32 branchId;
} OesTrdBaseInfoT;
# 2230 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesTrdCnfm {
    int64 exchTrdNum; uint8 mktId; uint8 trdSide; uint8 __platformId; uint8 __trdCnfmType; uint32 __etfTrdCnfmSeq; char invAcctId[(16)]; char securityId[(16)]; int32 trdDate; int32 trdTime; int32 trdQty; int32 trdPrice; int64 trdAmt; int64 clOrdId; int32 cumQty; int32 __rowNum; uint8 __tgwGrpNo; uint8 __isTrsfInCashAvailable; uint8 __tgwPartitionNo; uint8 productType; int32 origOrdQty; int32 pbuId; int32 branchId; int32 clSeqNo; int16 clientId; int8 clEnvId; uint8 subSecurityType; uint8 ordStatus; uint8 ordType; uint8 ordBuySellType; uint8 securityType; int32 origOrdPrice; int64 cumAmt; int64 cumInterest; int64 cumFee; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo ; STimeval32T __trdCnfmOrigRecvTime; STimeval32T __trdCnfmCollectedTime; STimeval32T __trdCnfmActualDealTime; STimeval32T __trdCnfmProcessedTime; STimeval32T __pushingTime;
    int64 trdInterest; int64 trdFee; int64 trdMargin; int64 cumMargin; char __TRD_CNFM_EXT_reserve[24];
} OesTrdCnfmT;
# 2294 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesLotWinningBaseInfo {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 lotType; uint8 rejReason; int8 __LOT_WINNING_BASE_INFO_filler; int32 lotDate; char securityName[(24)]; int64 assignNum; int32 lotQty; int32 lotPrice; int64 lotAmt;
} OesLotWinningBaseInfoT;
# 2356 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesFundTrsfBaseInfo {
    int32 clSeqNo; uint8 direct; uint8 isAllotOnly; uint8 __FUND_TRSF_BASE_filler[2]; char cashAcctId[(16)]; char trdPasswd[(40)]; char trsfPasswd[(40)]; int64 occurAmt; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo;
} OesFundTrsfBaseInfoT;
# 2370 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesFundTrsfReq {
    int32 clSeqNo; uint8 direct; uint8 isAllotOnly; uint8 __FUND_TRSF_BASE_filler[2]; char cashAcctId[(16)]; char trdPasswd[(40)]; char trsfPasswd[(40)]; int64 occurAmt; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo;
} OesFundTrsfReqT;
# 2384 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesFundTrsfReject {
    int32 clSeqNo; uint8 direct; uint8 isAllotOnly; uint8 __FUND_TRSF_BASE_filler[2]; char cashAcctId[(16)]; char trdPasswd[(40)]; char trsfPasswd[(40)]; int64 occurAmt; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo;


    int32 ordDate;

    int32 ordTime;


    int16 clientId;

    int8 clEnvId;

    int8 __filler;

    int32 rejReason;


    char errorInfo[(64)];
} OesFundTrsfRejectT;
# 2417 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesFundTrsfReport {

    int32 clSeqNo;

    int16 clientId;

    int8 clEnvId;

    uint8 direct;

    char cashAcctId[(16)];


    int64 occurAmt;

    union {
        uint64 u64;
        int64 i64;
        uint32 u32[2];
        int32 i32[2];
        char c8[8];
    } userInfo;


    int32 fundTrsfId;

    int32 counterEntrustNo;


    int32 operDate;

    int32 operTime;

    int32 dclrTime;

    int32 doneTime;


    uint8 isAllotOnly;

    uint8 trsfStatus;

    uint8 __hasCounterTransfered;

    uint8 __filler;


    int32 rejReason;

    int32 counterErrCode;

    uint32 __filler2;

    char allotSerialNo[(64)];

    char errorInfo[(64)];
} OesFundTrsfReportT;
# 2563 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesIssueBaseInfo {
    char securityId[(16)]; uint8 mktId; uint8 securityType; uint8 subSecurityType; uint8 isCancelAble; uint8 isReApplyAble; uint8 productType; uint8 suspFlag; uint8 issueType; char securityName[(24)]; char underlyingSecurityId[(16)]; int32 startDate; int32 endDate; int64 issueQty; int32 qtyUnit; int32 ordMaxQty; int32 ordMinQty; int32 issuePrice; union { int32 upperLimitPrice; int32 ceilPrice; }; union { int32 lowerLimitPrice; int32 floorPrice; };
} OesIssueBaseInfoT;
# 2581 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesPriceLimit {
    union {

        int32 upperLimitPrice;

        int32 ceilPrice;
    };

    union {

        int32 lowerLimitPrice;

        int32 floorPrice;
    };
} OesPriceLimitT;
# 2729 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesStockBaseInfo {
    char securityId[(16)]; uint8 mktId; uint8 productType; uint8 securityType; uint8 subSecurityType; uint8 securityLevel; uint8 securityRiskLevel; uint8 currType; uint8 qualificationClass; uint8 isDayTrading; uint8 suspFlag; uint8 temporarySuspFlag; uint8 __STOCK_BASE_filler[5]; int32 buyQtyUnit; union { int32 lmtBuyMaxQty; int32 buyOrdMaxQty; }; union { int32 lmtBuyMinQty; int32 buyOrdMinQty; }; int32 mktBuyMaxQty; int32 mktBuyMinQty; int32 sellQtyUnit; union { int32 lmtSellMaxQty; int32 sellOrdMaxQty; }; union { int32 lmtSellMinQty; int32 sellOrdMinQty; }; int32 mktSellMaxQty; int32 mktSellMinQty; union { int32 priceTick; int32 priceUnit; }; int32 prevClose; int64 parPrice; int64 bondInterest; int32 repoExpirationDays; int32 cashHoldDays; OesPriceLimitT priceLimit[__OES_TRD_SESS_TYPE_MAX]; char securityName[(24)]; char fundId[(16)]; int64 outstandingShare; int64 publicFloatShare; char __STOCK_BASE_reserve[16];
} OesStockBaseInfoT;
# 2818 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesEtfBaseInfo {
    char fundId[(16)]; char securityId[(16)]; uint8 mktId; uint8 securityType; uint8 subSecurityType; uint8 isPublishIOPV; uint8 isCreationAble; uint8 isRedemptionAble; uint8 isDisabled; uint8 __ETF_BASE_filler; int32 componentCnt; int32 creRdmUnit; int32 maxCashRatio; int32 nav; int64 navPerCU; int64 dividendPerCU; int32 tradingDay; int32 preTradingDay; int64 estiCashCmpoent; int64 cashCmpoent; int64 creationLimit; int64 redemLimit; int64 netCreationLimit; int64 netRedemLimit;
} OesEtfBaseInfoT;
# 2875 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesEtfComponentBaseInfo {
    char fundId[(16)]; char securityId[(16)]; uint8 mktId; uint8 subFlag; uint8 securityType; uint8 subSecurityType; int32 prevClose; int32 qty; int32 premiumRate; int64 creationSubCash; int64 redemptionCashSub;
} OesEtfComponentBaseInfoT;
# 3016 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesCashAssetBaseInfo {
    char cashAcctId[(16)]; char custId[(16)]; uint8 currType; uint8 cashType; uint8 cashAcctStatus; uint8 isFundTrsfDisabled; uint8 __CASH_ASSET_BASE_filler[4]; int64 beginningBal; int64 beginningAvailableBal; int64 beginningDrawableBal; int64 disableBal; int64 reversalAmt; int64 manualFrzAmt; int64 totalDepositAmt; int64 totalWithdrawAmt; int64 withdrawFrzAmt; int64 totalSellAmt; int64 totalBuyAmt; int64 buyFrzAmt; int64 totalFeeAmt; int64 feeFrzAmt; int64 marginAmt; int64 marginFrzAmt;
} OesCashAssetBaseInfoT;
# 3030 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesCashAssetReport {
    char cashAcctId[(16)]; char custId[(16)]; uint8 currType; uint8 cashType; uint8 cashAcctStatus; uint8 isFundTrsfDisabled; uint8 __CASH_ASSET_BASE_filler[4]; int64 beginningBal; int64 beginningAvailableBal; int64 beginningDrawableBal; int64 disableBal; int64 reversalAmt; int64 manualFrzAmt; int64 totalDepositAmt; int64 totalWithdrawAmt; int64 withdrawFrzAmt; int64 totalSellAmt; int64 totalBuyAmt; int64 buyFrzAmt; int64 totalFeeAmt; int64 feeFrzAmt; int64 marginAmt; int64 marginFrzAmt;
    int64 currentTotalBal; int64 currentAvailableBal; int64 currentDrawableBal; struct { int64 initialMargin; int64 totalExerciseFrzAmt; int64 pendingSupplMargin; int64 sseAvailablePurchaseLimit; int64 szseAvailablePurchaseLimit; int64 totalMarketMargin; int64 totalNetMargin; } optionExt; char __CASH_ASSET_EXT_reserve[16];
} OesCashAssetReportT;
# 3087 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesCustBaseInfo {
    char custId[(16)]; uint8 custType; uint8 status; uint8 riskLevel; uint8 originRiskLevel; uint8 institutionFlag; uint8 investorClass; uint8 optSettlementCnfmFlag; uint8 __CUST_BASE_filler1; int32 branchId; uint32 __CUST_BASE_filler2;
} OesCustBaseInfoT;
# 3156 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesInvAcctBaseInfo {
    char invAcctId[(16)]; uint8 mktId; uint8 acctType; uint8 status; uint8 ownerType; uint8 optInvLevel; uint8 isTradeDisabled; uint8 __INV_ACCT_BASE_filler[2]; uint64 limits; uint64 permissions; int32 pbuId; int32 stkPositionLimitRatio; int32 subscriptionQuota; int32 kcSubscriptionQuota; char __INV_ACCT_BASE_reserve[32];
} OesInvAcctBaseInfoT;
# 3288 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesStkHoldingBaseInfo {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 securityType; uint8 subSecurityType; uint8 productType; uint8 __HOLD_BASE_filler[4]; int64 originalHld; int64 originalCostAmt; int64 totalBuyHld; int64 totalSellHld; int64 sellFrzHld; int64 manualFrzHld; int64 totalBuyAmt; int64 totalSellAmt; int64 totalBuyFee; int64 totalSellFee; int64 totalTrsfInHld; int64 totalTrsfOutHld; int64 trsfOutFrzHld; int64 originalLockHld; int64 totalLockHld; int64 totalUnlockHld; int64 originalAvlHld; int64 maxReduceQuota;
} OesStkHoldingBaseInfoT;
# 3302 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesStkHoldingReport {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 securityType; uint8 subSecurityType; uint8 productType; uint8 __HOLD_BASE_filler[4]; int64 originalHld; int64 originalCostAmt; int64 totalBuyHld; int64 totalSellHld; int64 sellFrzHld; int64 manualFrzHld; int64 totalBuyAmt; int64 totalSellAmt; int64 totalBuyFee; int64 totalSellFee; int64 totalTrsfInHld; int64 totalTrsfOutHld; int64 trsfOutFrzHld; int64 originalLockHld; int64 totalLockHld; int64 totalUnlockHld; int64 originalAvlHld; int64 maxReduceQuota;
    int64 sellAvlHld; int64 trsfOutAvlHld; int64 lockAvlHld; int64 __filler; int64 sumHld; int64 costPrice;
} OesStkHoldingReportT;
# 3322 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesMarketStateInfo {
    uint8 exchId;
    uint8 platformId;
    uint8 mktId;
    uint8 mktState;
    uint8 __filler[4];
} OesMarketStateInfoT;
# 3377 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesNotifyBaseInfo {
    int32 notifySeqNo; uint8 notifySource; uint8 notifyType; uint8 notifyLevel; uint8 notifyScope; int32 tranTime; int32 __NOTIFY_INFO_filler; char custId[(16)]; char content[(256)];
} OesNotifyBaseInfoT;
# 3391 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesNotifyInfoReport {
    int32 notifySeqNo; uint8 notifySource; uint8 notifyType; uint8 notifyLevel; uint8 notifyScope; int32 tranTime; int32 __NOTIFY_INFO_filler; char custId[(16)]; char content[(256)];
} OesNotifyInfoReportT;
# 3554 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptionBaseInfo {
    char securityId[(16)]; uint8 mktId; uint8 productType; uint8 securityType; uint8 subSecurityType; uint8 contractType; uint8 exerciseType; uint8 deliveryType; uint8 isDayTrading; uint8 limitOpenFlag; uint8 suspFlag; uint8 temporarySuspFlag; uint8 __OPTION_BASE_filler1[5]; int32 contractUnit; int32 exercisePrice; int32 deliveryDate; int32 deliveryMonth; int32 listDate; int32 lastTradeDay; int32 exerciseBeginDate; int32 exerciseEndDate; int64 contractPosition; int32 prevClosePrice; int32 prevSettlPrice; int32 underlyingClosePrice; int32 priceTick; int32 upperLimitPrice; int32 lowerLimitPrice; int32 buyQtyUnit; int32 lmtBuyMaxQty; int32 lmtBuyMinQty; int32 mktBuyMaxQty; int32 mktBuyMinQty; int32 sellQtyUnit; int32 lmtSellMaxQty; int32 lmtSellMinQty; int32 mktSellMaxQty; int32 mktSellMinQty; int64 sellMargin; int64 originalSellMargin; int32 marginRatioParam1; int32 marginRatioParam2; int32 increasedMarginRatio; int32 expireDays; char contractId[(24)]; char securityName[(24)]; char securityStatusFlag[(8)]; char underlyingSecurityId[(16)]; uint8 underlyingMktId; uint8 underlyingSecurityType; uint8 __OPTION_BASE_filler3[6]; char __OPTION_BASE_reserve[32];
} OesOptionBaseInfoT;
# 3689 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptHoldingBaseInfo {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 positionType; uint8 productType; uint8 securityType; uint8 subSecurityType; uint8 contractType; uint8 hedgeFlag; uint8 __HOLD_BASE_filler; int64 originalQty; int64 originalAvlQty; int64 originalCostAmt; int64 originalCarryingAmt; int64 totalOpenQty; int64 uncomeQty; int64 totalCloseQty; int64 closeFrzQty; int64 manualFrzQty; int64 totalInPremium; int64 totalOutPremium; int64 totalOpenFee; int64 totalCloseFee; int64 exerciseFrzQty; int64 positionMargin; char __OPT_HOLDING_BASE_reserve[32];
} OesOptHoldingBaseInfoT;
# 3703 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptHoldingReport {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 positionType; uint8 productType; uint8 securityType; uint8 subSecurityType; uint8 contractType; uint8 hedgeFlag; uint8 __HOLD_BASE_filler; int64 originalQty; int64 originalAvlQty; int64 originalCostAmt; int64 originalCarryingAmt; int64 totalOpenQty; int64 uncomeQty; int64 totalCloseQty; int64 closeFrzQty; int64 manualFrzQty; int64 totalInPremium; int64 totalOutPremium; int64 totalOpenFee; int64 totalCloseFee; int64 exerciseFrzQty; int64 positionMargin; char __OPT_HOLDING_BASE_reserve[32];
    int64 closeAvlQty; int64 exerciseAvlQty; int64 sumQty; int64 costPrice; int64 carryingAvgPrice; int64 coveredAvlUnderlyingQty; int32 availableLongPositionLimit; int32 availableTotalPositionLimit; int32 availableDailyBuyOpenLimit; int32 __OPT_HOLDING_EXT_filler2; char __OPT_HOLDING_EXT_reserve[32];
} OesOptHoldingReportT;
# 3782 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptUnderlyingHoldingBaseInfo {
    char invAcctId[(16)]; char underlyingSecurityId[(16)]; uint8 mktId; uint8 underlyingMktId; uint8 underlyingSecurityType; uint8 underlyingSubSecurityType; uint8 __OPT_UNDERLYING_HOLD_BASE_filler[4]; int64 originalHld; int64 originalAvlHld; int64 originalCoveredQty; int64 initialCoveredQty; int64 coveredQty; int64 coveredGapQty; int64 coveredAvlQty; int64 lockAvlQty; int64 sumHld; int64 maxReduceQuota;
} OesOptUnderlyingHoldingBaseInfoT;
# 3796 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptUnderlyingHoldingReport {
    char invAcctId[(16)]; char underlyingSecurityId[(16)]; uint8 mktId; uint8 underlyingMktId; uint8 underlyingSecurityType; uint8 underlyingSubSecurityType; uint8 __OPT_UNDERLYING_HOLD_BASE_filler[4]; int64 originalHld; int64 originalAvlHld; int64 originalCoveredQty; int64 initialCoveredQty; int64 coveredQty; int64 coveredGapQty; int64 coveredAvlQty; int64 lockAvlQty; int64 sumHld; int64 maxReduceQuota;
} OesOptUnderlyingHoldingReportT;
# 3888 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptionPositionLimitBaseInfo {
    char invAcctId[(16)]; char underlyingSecurityId[(16)]; uint8 mktId; uint8 underlyingMktId; uint8 underlyingSecurityType; uint8 underlyingSubSecurityType; uint8 __POSITION_LIMIT_BASE_filler1[4]; int32 longPositionLimit; int32 totalPositionLimit; int32 dailyBuyOpenLimit; int32 __POSITION_LIMIT_BASE_filler2; int32 originalLongQty; int32 totalBuyOpenQty; int32 uncomeBuyOpenQty; int32 totalSellCloseQty; int32 originalShortQty; int32 totalSellOpenQty; int32 uncomeSellOpenQty; int32 totalBuyCloseQty; int32 originalCoveredQty; int32 totalCoveredOpenQty; int32 uncomeCoveredOpenQty; int32 totalCoveredCloseQty;
} OesOptionPositionLimitBaseInfoT;
# 3982 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptionExerciseAssignBase {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 positionType; uint8 productType; uint8 securityType; uint8 subSecurityType; uint8 contractType; uint8 deliveryType; uint8 __OPTION_EXERCISE_ASSIGN_filler1; int32 exercisePrice; int32 exerciseQty; int64 deliveryQty; int32 exerciseBeginDate; int32 exerciseEndDate; int32 clearingDate; int32 deliveryDate; int64 clearingAmt; int64 clearingFee; int64 settlementAmt; char underlyingSecurityId[(16)]; uint8 underlyingMktId; uint8 underlyingSecurityType; uint8 __OPTION_EXERCISE_ASSIGN_filler3[6]; char securityName[(24)]; char __OPTION_EXERCISE_ASSIGN_reserve[16];
} OesOptionExerciseAssignBaseT;
# 4038 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptSettlementConfirmBaseInfo {
    char custId[(16)]; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo; int16 clientId; int8 clEnvId; int8 __filler2; int32 transDate; int32 transTime; int32 rejReason; char __OPT_SETTLEMENT_CONFIRM_BASE_reserve[24];
} OesOptSettlementConfirmBaseInfoT;
# 4052 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
typedef struct _OesOptSettlementConfirmReport {
    char custId[(16)]; union { uint64 u64; int64 i64; uint32 u32[2]; int32 i32[2]; char c8[8]; } userInfo; int16 clientId; int8 clEnvId; int8 __filler2; int32 transDate; int32 transTime; int32 rejReason; char __OPT_SETTLEMENT_CONFIRM_BASE_reserve[24];
} OesOptSettlementConfirmReportT;
# 4064 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_base_model.h"
}
# 126 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h" 1
# 249 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_global_packet.h" 1
# 40 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_global_packet.h"
extern "C" {
# 51 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_global_packet.h"
typedef enum _eSMsgProtocolType {
    SMSG_PROTO_BINARY = 0x00,
    SMSG_PROTO_JSON = 0x01,
    SMSG_PROTO_FIX = 0x02,
    SMSG_PROTO_PROTOBUF = 0x03,
    __MAX_SMSG_PROTO_TYPE
} eSMsgProtocolTypeT;







typedef enum _eSMsgFlag {
    SMSG_MSGFLAG_NONE = 0x00,
    SMSG_MSGFLAG_REQ = 0x00,
    SMSG_MSGFLAG_RSP = 0x50,
    SMSG_MSGFLAG_NESTED = 0x20,
    SMSG_MSGFLAG_COMPRESSED = 0x80,

    SMSG_MSGFLAG_MASK_RSPFLAG = 0xF0,
    SMSG_MSGFLAG_MASK_PROTOCOL = 0x0F
} eSMsgFlagT;
# 86 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_global_packet.h"
typedef struct _SMsgHead {
    uint8 msgFlag;
    uint8 msgId;
    uint8 status;
    uint8 detailStatus;
    int32 msgSize;
} SMsgHeadT;
# 172 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_global_packet.h"
}
# 250 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h" 2



extern "C" {
# 330 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCursor {

    int32 seqNo;


    int8 isEnd;

    int8 __filler[3];


    int64 userInfo;
} OesQryCursorT;
# 353 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryReqHead {

    int32 maxPageSize;

    int32 lastPosition;
} OesQryReqHeadT;
# 370 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryRspHead {

    int32 itemCount;

    int32 lastPosition;


    int8 isEnd;

    uint8 __filler[7];


    int64 userInfo;
} OesQryRspHeadT;
# 399 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOrdFilter {

    char custId[(16)];

    char invAcctId[(16)];





    uint8 mktId;

    uint8 isUnclosedOnly;

    int8 clEnvId;

    uint8 securityType;

    uint8 bsType;

    uint8 __filler[3];


    int64 clOrdId;

    int64 clSeqNo;


    int32 startTime;

    int32 endTime;


    int64 userInfo;
} OesQryOrdFilterT;
# 448 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesOrdCnfmT OesOrdItemT;
# 460 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOrdReq {

    OesQryReqHeadT reqHead;

    OesQryOrdFilterT qryFilter;
} OesQryOrdReqT;
# 478 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOrdRsp {

    OesQryRspHeadT rspHead;

    OesOrdItemT qryItems[(30)];
} OesQryOrdRspT;
# 500 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryTrdFilter {

    char custId[(16)];

    char invAcctId[(16)];





    uint8 mktId;

    int8 clEnvId;

    uint8 securityType;

    uint8 bsType;

    uint32 __filler;


    int64 clOrdId;

    int64 clSeqNo;


    int32 startTime;

    int32 endTime;


    int64 userInfo;
} OesQryTrdFilterT;
# 547 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesTrdCnfmT OesTrdItemT;
# 559 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryTrdReq {

    OesQryReqHeadT reqHead;

    OesQryTrdFilterT qryFilter;
} OesQryTrdReqT;
# 576 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryTrdRsp {

    OesQryRspHeadT rspHead;

    OesTrdItemT qryItems[(30)];
} OesQryTrdRspT;
# 598 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCashAssetFilter {

    char custId[(16)];

    char cashAcctId[(16)];


    int64 userInfo;
} OesQryCashAssetFilterT;
# 618 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesCashAssetItem {
    char cashAcctId[(16)]; char custId[(16)]; uint8 currType; uint8 cashType; uint8 cashAcctStatus; uint8 isFundTrsfDisabled; uint8 __CASH_ASSET_BASE_filler[4]; int64 beginningBal; int64 beginningAvailableBal; int64 beginningDrawableBal; int64 disableBal; int64 reversalAmt; int64 manualFrzAmt; int64 totalDepositAmt; int64 totalWithdrawAmt; int64 withdrawFrzAmt; int64 totalSellAmt; int64 totalBuyAmt; int64 buyFrzAmt; int64 totalFeeAmt; int64 feeFrzAmt; int64 marginAmt; int64 marginFrzAmt;
    int64 currentTotalBal; int64 currentAvailableBal; int64 currentDrawableBal; struct { int64 initialMargin; int64 totalExerciseFrzAmt; int64 pendingSupplMargin; int64 sseAvailablePurchaseLimit; int64 szseAvailablePurchaseLimit; int64 totalMarketMargin; int64 totalNetMargin; } optionExt; char __CASH_ASSET_EXT_reserve[16];
} OesCashAssetItemT;
# 634 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCashAssetReq {

    OesQryReqHeadT reqHead;

    OesQryCashAssetFilterT qryFilter;
} OesQryCashAssetReqT;
# 652 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCashAssetRsp {

    OesQryRspHeadT rspHead;

    OesCashAssetItemT qryItems[(30)];
} OesQryCashAssetRspT;
# 674 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesCounterCashItem {

    char cashAcctId[(16)];

    char custId[(16)];

    char custName[(64)];

    char bankId[(8)];

    uint8 cashType;
    uint8 cashAcctStatus;
    uint8 currType;
    uint8 isFundTrsfDisabled;
    uint8 __filler[4];

    int64 counterAvailableBal;
    int64 counterDrawableBal;
    int64 counterCashUpdateTime;

    char __reserve[32];
} OesCounterCashItemT;
# 710 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCounterCashReq {

    char cashAcctId[(16)];
} OesQryCounterCashReqT;
# 725 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCounterCashRsp {

    OesCounterCashItemT counterCashItem;
} OesQryCounterCashRspT;
# 744 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryStkHoldingFilter {

    char custId[(16)];

    char invAcctId[(16)];

    char securityId[(16)];


    uint8 mktId;

    uint8 securityType;

    uint8 productType;

    uint8 __filler[5];


    int64 userInfo;
} OesQryStkHoldingFilterT;
# 776 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesStkHoldingItem {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 securityType; uint8 subSecurityType; uint8 productType; uint8 __HOLD_BASE_filler[4]; int64 originalHld; int64 originalCostAmt; int64 totalBuyHld; int64 totalSellHld; int64 sellFrzHld; int64 manualFrzHld; int64 totalBuyAmt; int64 totalSellAmt; int64 totalBuyFee; int64 totalSellFee; int64 totalTrsfInHld; int64 totalTrsfOutHld; int64 trsfOutFrzHld; int64 originalLockHld; int64 totalLockHld; int64 totalUnlockHld; int64 originalAvlHld; int64 maxReduceQuota;
    int64 sellAvlHld; int64 trsfOutAvlHld; int64 lockAvlHld; int64 __filler; int64 sumHld; int64 costPrice;
} OesStkHoldingItemT;
# 792 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryStkHoldingReq {

    OesQryReqHeadT reqHead;

    OesQryStkHoldingFilterT qryFilter;
} OesQryStkHoldingReqT;
# 810 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryStkHoldingRsp {

    OesQryRspHeadT rspHead;

    OesStkHoldingItemT qryItems[(30)];
} OesQryStkHoldingRspT;
# 832 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptHoldingFilter {

    char custId[(16)];

    char invAcctId[(16)];

    char securityId[(16)];


    uint8 mktId;

    uint8 positionType;

    uint8 __filler[6];


    int64 userInfo;
} OesQryOptHoldingFilterT;
# 862 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesOptHoldingItem {
    char invAcctId[(16)]; char securityId[(16)]; uint8 mktId; uint8 positionType; uint8 productType; uint8 securityType; uint8 subSecurityType; uint8 contractType; uint8 hedgeFlag; uint8 __HOLD_BASE_filler; int64 originalQty; int64 originalAvlQty; int64 originalCostAmt; int64 originalCarryingAmt; int64 totalOpenQty; int64 uncomeQty; int64 totalCloseQty; int64 closeFrzQty; int64 manualFrzQty; int64 totalInPremium; int64 totalOutPremium; int64 totalOpenFee; int64 totalCloseFee; int64 exerciseFrzQty; int64 positionMargin; char __OPT_HOLDING_BASE_reserve[32];
    int64 closeAvlQty; int64 exerciseAvlQty; int64 sumQty; int64 costPrice; int64 carryingAvgPrice; int64 coveredAvlUnderlyingQty; int32 availableLongPositionLimit; int32 availableTotalPositionLimit; int32 availableDailyBuyOpenLimit; int32 __OPT_HOLDING_EXT_filler2; char __OPT_HOLDING_EXT_reserve[32];


    char contractId[(24)];

    char contractSymbol[(24)];

    int64 prevSettlPrice;
} OesOptHoldingItemT;
# 886 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptHoldingReq {

    OesQryReqHeadT reqHead;

    OesQryOptHoldingFilterT qryFilter;
} OesQryOptHoldingReqT;
# 904 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptHoldingRsp {

    OesQryRspHeadT rspHead;

    OesOptHoldingItemT qryItems[(30)];
} OesQryOptHoldingRspT;
# 927 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCustFilter {

    char custId[(16)];


    int64 userInfo;
} OesQryCustFilterT;
# 945 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesCustBaseInfoT OesCustItemT;
# 957 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCustReq {

    OesQryReqHeadT reqHead;

    OesQryCustFilterT qryFilter;
} OesQryCustReqT;
# 975 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCustRsp {

    OesQryRspHeadT rspHead;

    OesCustItemT qryItems[(30)];
} OesQryCustRspT;
# 997 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryInvAcctFilter {

    char custId[(16)];

    char invAcctId[(16)];





    uint8 mktId;

    uint8 __filler[7];


    int64 userInfo;
} OesQryInvAcctFilterT;
# 1026 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesInvAcctItem {
    char invAcctId[(16)]; uint8 mktId; uint8 acctType; uint8 status; uint8 ownerType; uint8 optInvLevel; uint8 isTradeDisabled; uint8 __INV_ACCT_BASE_filler[2]; uint64 limits; uint64 permissions; int32 pbuId; int32 stkPositionLimitRatio; int32 subscriptionQuota; int32 kcSubscriptionQuota; char __INV_ACCT_BASE_reserve[32];


    char custId[(16)];
} OesInvAcctItemT;
# 1044 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryInvAcctReq {

    OesQryReqHeadT reqHead;

    OesQryInvAcctFilterT qryFilter;
} OesQryInvAcctReqT;
# 1062 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryInvAcctRsp {

    OesQryRspHeadT rspHead;

    OesInvAcctItemT qryItems[(30)];
} OesQryInvAcctRspT;
# 1084 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesInvAcctOverview {

    char invAcctId[(16)];

    uint8 mktId;


    uint8 acctType;

    uint8 status;

    uint8 ownerType;

    uint8 optInvLevel;

    uint8 isTradeDisabled;

    uint8 __INV_ACCT_BASE_filler[2];


    uint64 limits;

    uint64 permissions;


    int32 pbuId;

    int32 subscriptionQuota;


    char custId[(16)];

    uint8 isValid;
    uint8 __filler[3];
    int32 kcSubscriptionQuota;

    int32 trdOrdCnt;
    int32 nonTrdOrdCnt;
    int32 cancelOrdCnt;
    int32 oesRejectOrdCnt;
    int32 exchRejectOrdCnt;
    int32 trdCnt;

    char __reserve[8];
} OesInvAcctOverviewT;
# 1147 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesCashAcctOverview {

    char cashAcctId[(16)];

    char custId[(16)];

    char bankId[(8)];

    uint8 isValid;
    uint8 cashType;
    uint8 cashAcctStatus;
    uint8 currType;
    uint8 isFundTrsfDisabled;
    uint8 __filler[3];

    char __reserve[8];
} OesCashAcctOverviewT;
# 1177 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesCustOverview {
    char custId[(16)]; uint8 custType; uint8 status; uint8 riskLevel; uint8 originRiskLevel; uint8 institutionFlag; uint8 investorClass; uint8 optSettlementCnfmFlag; uint8 __CUST_BASE_filler1; int32 branchId; uint32 __CUST_BASE_filler2;


    char custName[(64)];

    OesCashAcctOverviewT spotCashAcct;
    OesCashAcctOverviewT creditCashAcct;
    OesCashAcctOverviewT optionCashAcct;

    OesInvAcctOverviewT shSpotInvAcct;
    OesInvAcctOverviewT shOptionInvAcct;
    OesInvAcctOverviewT szSpotInvAcct;
    OesInvAcctOverviewT szOptionInvAcct;

    char __reserve[8];
} OesCustOverviewT;
# 1213 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesClientOverview {
    int16 clientId;
    uint8 clientType;
    uint8 clientStatus;
    uint8 isApiForbidden;
    uint8 isBlockTrader;
    uint8 businessScope;
    uint8 __filler;
    int64 logonTime;


    char clientName[(32)];

    char clientMemo[(32)];

    int32 sseStkPbuId;
    int32 sseOptPbuId;
    uint8 sseQualificationClass;
    uint8 __filler2[7];

    int32 szseStkPbuId;
    int32 szseOptPbuId;
    uint8 szseQualificationClass;
    uint8 __filler3[7];

    int32 currOrdConnected;
    int32 currRptConnected;
    int32 currQryConnected;
    int32 maxOrdConnect;
    int32 maxRptConnect;
    int32 maxQryConnect;

    int32 ordTrafficLimit;
    int32 qryTrafficLimit;
    char __reserve[8];

    int32 associatedCustCnt;
    int32 __filler4;


    OesCustOverviewT custItems[(1)];
} OesClientOverviewT;
# 1277 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCommissionRateFilter {

    char custId[(16)];





    uint8 mktId;




    uint8 securityType;




    uint8 bsType;

    uint8 __filler[5];


    int64 userInfo;
} OesQryCommissionRateFilterT;
# 1313 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesCommissionRateItem {

    char custId[(16)];

    char securityId[(16)];


    uint8 mktId;

    uint8 securityType;

    uint8 subSecurityType;

    uint8 bsType;


    uint8 feeType;

    uint8 currType;

    uint8 calcFeeMode;

    uint8 __filler;


    int64 feeRate;

    int32 minFee;

    int32 maxFee;
} OesCommissionRateItemT;
# 1358 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCommissionRateReq {

    OesQryReqHeadT reqHead;

    OesQryCommissionRateFilterT qryFilter;
} OesQryCommissionRateReqT;
# 1376 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryCommissionRateRsp {

    OesQryRspHeadT rspHead;

    OesCommissionRateItemT qryItems[(50)];
} OesQryCommissionRateRspT;
# 1398 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryFundTransferSerialFilter {

    char custId[(16)];

    char cashAcctId[(16)];


    int32 clSeqNo;

    int8 clEnvId;

    uint8 __filler[3];


    int64 userInfo;
} OesQryFundTransferSerialFilterT;
# 1425 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesFundTrsfReportT OesFundTransferSerialItemT;
# 1437 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryFundTransferSerialReq {

    OesQryReqHeadT reqHead;

    OesQryFundTransferSerialFilterT qryFilter;
} OesQryFundTransferSerialReqT;
# 1455 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryFundTransferSerialRsp {

    OesQryRspHeadT rspHead;

    OesFundTransferSerialItemT qryItems[(30)];
} OesQryFundTransferSerialRspT;
# 1477 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryLotWinningFilter {

    char custId[(16)];

    char invAcctId[(16)];





    uint8 mktId;




    uint8 lotType;

    uint8 __filler[6];


    int32 startDate;

    int32 endDate;


    int64 userInfo;
} OesQryLotWinningFilterT;
# 1517 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesLotWinningBaseInfoT OesLotWinningItemT;
# 1529 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryLotWinningReq {

    OesQryReqHeadT reqHead;

    OesQryLotWinningFilterT qryFilter;
} OesQryLotWinningReqT;
# 1547 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryLotWinningRsp {

    OesQryRspHeadT rspHead;

    OesLotWinningItemT qryItems[(30)];
} OesQryLotWinningRspT;
# 1569 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryIssueFilter {

    char securityId[(16)];





    uint8 mktId;





    uint8 productType;


    uint8 __filler[6];


    int64 userInfo;
} OesQryIssueFilterT;
# 1602 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesIssueBaseInfoT OesIssueItemT;
# 1614 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryIssueReq {

    OesQryReqHeadT reqHead;

    OesQryIssueFilterT qryFilter;
} OesQryIssueReqT;
# 1632 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryIssueRsp {

    OesQryRspHeadT rspHead;

    OesIssueItemT qryItems[(30)];
} OesQryIssueRspT;
# 1654 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryStockFilter {

    char securityId[(16)];





    uint8 mktId;

    uint8 securityType;

    uint8 subSecurityType;

    uint8 __filler[5];


    int64 userInfo;
} OesQryStockFilterT;
# 1684 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesStockBaseInfoT OesStockItemT;
# 1696 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryStockReq {

    OesQryReqHeadT reqHead;

    OesQryStockFilterT qryFilter;
} OesQryStockReqT;
# 1714 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryStockRsp {

    OesQryRspHeadT rspHead;

    OesStockItemT qryItems[(30)];
} OesQryStockRspT;
# 1736 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryEtfFilter {

    char fundId[(16)];





    uint8 mktId;

    uint8 __filler[7];


    int64 userInfo;
} OesQryEtfFilterT;
# 1762 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesEtfBaseInfoT OesEtfItemT;
# 1774 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryEtfReq {

    OesQryReqHeadT reqHead;

    OesQryEtfFilterT qryFilter;
} OesQryEtfReqT;
# 1792 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryEtfRsp {

    OesQryRspHeadT rspHead;

    OesEtfItemT qryItems[(30)];
} OesQryEtfRspT;
# 1814 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryEtfComponentFilter {

    char fundId[(16)];


    int64 userInfo;
} OesQryEtfComponentFilterT;
# 1832 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesEtfComponentItem {

    char securityId[(16)];

    uint8 mktId;

    uint8 subFlag;

    uint8 securityType;

    uint8 subSecurityType;


    int32 prevClose;

    int32 qty;

    int32 premiumRate;


    int64 creationSubCash;

    int64 redemptionCashSub;

    char fundId[(16)];
} OesEtfComponentItemT;
# 1871 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryEtfComponentReq {

    OesQryReqHeadT reqHead;

    OesQryEtfComponentFilterT qryFilter;
} OesQryEtfComponentReqT;
# 1889 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryEtfComponentRsp {

    OesQryRspHeadT rspHead;

    OesEtfComponentItemT
                        qryItems[(30)];
} OesQryEtfComponentRspT;
# 1912 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptionFilter {

    char securityId[(16)];





    uint8 mktId;

    uint8 __filler[7];


    int64 userInfo;
} OesQryOptionFilterT;
# 1938 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesOptionBaseInfoT OesOptionItemT;
# 1950 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptionReq {

    OesQryReqHeadT reqHead;

    OesQryOptionFilterT qryFilter;
} OesQryOptionReqT;
# 1968 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptionRsp {

    OesQryRspHeadT rspHead;

    OesOptionItemT qryItems[(30)];
} OesQryOptionRspT;
# 1990 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptUnderlyingHoldingFilter {

    char custId[(16)];

    char invAcctId[(16)];

    char underlyingSecurityId[(16)];


    uint8 mktId;

    uint8 underlyingSecurityType;

    uint8 __filler[6];


    int64 userInfo;
} OesQryOptUnderlyingHoldingFilterT;
# 2020 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesOptUnderlyingHoldingBaseInfoT OesOptUnderlyingHoldingItemT;
# 2032 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptUnderlyingHoldingReq {

    OesQryReqHeadT reqHead;

    OesQryOptUnderlyingHoldingFilterT qryFilter;
} OesQryOptUnderlyingHoldingReqT;
# 2050 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptUnderlyingHoldingRsp {

    OesQryRspHeadT rspHead;

    OesOptUnderlyingHoldingItemT
                        qryItems[(30)];
} OesQryOptUnderlyingHoldingRspT;
# 2073 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptPositionLimitFilter {

    char custId[(16)];

    char invAcctId[(16)];

    char underlyingSecurityId[(16)];


    uint8 mktId;

    uint8 underlyingSecurityType;

    uint8 __filler[6];


    int64 userInfo;
} OesQryOptPositionLimitFilterT;
# 2103 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesOptPositionLimitItem {

    char invAcctId[(16)];

    char underlyingSecurityId[(16)];

    uint8 mktId;


    uint8 underlyingMktId;

    uint8 underlyingSecurityType;

    uint8 underlyingSubSecurityType;

    uint8 __filler1[4];


    int32 longPositionLimit;

    int32 totalPositionLimit;

    int32 dailyBuyOpenLimit;

    int32 __filler2;


    int32 originalLongQty;

    int32 originalShortQty;

    int32 originalCoveredQty;


    int32 availableLongPositionLimit;

    int32 availableTotalPositionLimit;

    int32 availableDailyBuyOpenLimit;


    char __reserve[8];
} OesOptPositionLimitItemT;
# 2161 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptPositionLimitReq {

    OesQryReqHeadT reqHead;

    OesQryOptPositionLimitFilterT qryFilter;
} OesQryOptPositionLimitReqT;
# 2179 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptPositionLimitRsp {

    OesQryRspHeadT rspHead;

    OesOptPositionLimitItemT
                        qryItems[(30)];
} OesQryOptPositionLimitRspT;
# 2202 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptPurchaseLimitFilter {

    char custId[(16)];

    char invAcctId[(16)];





    uint8 mktId;

    uint8 __filler[7];


    int64 userInfo;
} OesQryOptPurchaseLimitFilterT;
# 2231 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesOptPurchaseLimitItem {

    char custId[(16)];

    char cashAcctId[(16)];

    char invAcctId[(16)];

    uint8 mktId;

    uint8 custType;

    uint8 __filler[6];


    int64 purchaseLimit;

    int64 originalUsedPurchaseAmt;

    int64 totalOpenPurchaseAmt;

    int64 frzPurchaseAmt;

    int64 totalClosePurchaseAmt;

    int64 availablePurchaseLimit;
} OesOptPurchaseLimitItemT;
# 2271 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesOptionExerciseAssignBaseT OesOptExerciseAssignItemT;
# 2283 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptPurchaseLimitReq {

    OesQryReqHeadT reqHead;

    OesQryOptPurchaseLimitFilterT
                            qryFilter;
} OesQryOptPurchaseLimitReqT;
# 2302 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptPurchaseLimitRsp {

    OesQryRspHeadT rspHead;

    OesOptPurchaseLimitItemT
                            qryItems[(30)];
} OesQryOptPurchaseLimitRspT;
# 2325 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptExerciseAssignFilter {

    char custId[(16)];

    char invAcctId[(16)];

    char securityId[(16)];


    uint8 mktId;

    uint8 positionType;

    uint8 __filler[6];


    int64 userInfo;
} OesQryOptExerciseAssignFilterT;
# 2355 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptExerciseAssignReq {

    OesQryReqHeadT reqHead;

    OesQryOptExerciseAssignFilterT qryFilter;
} OesQryOptExerciseAssignReqT;
# 2373 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryOptExerciseAssignRsp {

    OesQryRspHeadT rspHead;

    OesOptExerciseAssignItemT
                        qryItems[(30)];
} OesQryOptExerciseAssignRspT;
# 2396 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryTradingDayRsp {

    int32 tradingDay;

    int32 __filler;
} OesQryTradingDayRspT;
# 2417 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryMarketStateFilter {




    uint8 exchId;





    uint8 platformId;


    uint8 __filler[6];


    int64 userInfo;
} OesQryMarketStateFilterT;
# 2448 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesMarketStateInfoT OesMarketStateItemT;
# 2460 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryMarketStateReq {

    OesQryReqHeadT reqHead;

    OesQryMarketStateFilterT
                            qryFilter;
} OesQryMarketStateReqT;
# 2479 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryMarketStateRsp {

    OesQryRspHeadT rspHead;

    OesMarketStateItemT qryItems[(30)];
} OesQryMarketStateRspT;
# 2501 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryNotifyInfoFilter {

    char custId[(16)];


    uint8 notifyLevel;

    uint8 __filler[7];


    int64 userInfo;
} OesQryNotifyInfoFilterT;
# 2524 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef OesNotifyBaseInfoT OesNotifyInfoItemT;
# 2536 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryNotifyInfoReq {

    OesQryReqHeadT reqHead;

    OesQryNotifyInfoFilterT
                            qryFilter;
} OesQryNotifyInfoReqT;
# 2559 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesBrokerParamsInfo {

    char brokerName[(128)];

    char brokerPhone[(32)];

    char brokerWebsite[(256)];


    char apiVersion[(40)];

    char apiMinVersion[(40)];

    char clientVersion[(40)];


    int32 changePwdLimitTime;

    int32 minClientPasswordLen;




    int32 clientPasswordStrength;

    uint32 businessScope;


    char __reserve[64];


    union {
        struct {
            int32 withdrawLineRatio;
            int32 __filler;
        } optionExt;

        char __extInfo[192];
    };
} OesBrokerParamsInfoT;
# 2611 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryBrokerParamsInfoRsp {
   OesBrokerParamsInfoT brokerParams;
} OesQryBrokerParamsInfoRspT;
# 2625 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef struct _OesQryNotifyInfoRsp {

    OesQryRspHeadT rspHead;

    OesNotifyInfoItemT qryItems[(30)];
} OesQryNotifyInfoRspT;
# 2647 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef union _OesQryReqMsg {
    OesQryOrdReqT qryOrd;
    OesQryTrdReqT qryTrd;
    OesQryCashAssetReqT qryCashAsset;
    OesQryStkHoldingReqT qryStkHolding;
    OesQryOptHoldingReqT qryOptHolding;
    OesQryCustReqT qryCust;
    OesQryInvAcctReqT qryInvAcct;
    OesQryCommissionRateReqT qryComms;
    OesQryFundTransferSerialReqT qryFundTrsf;
    OesQryLotWinningReqT qryLotWinning;
    OesQryIssueReqT qryIssue;
    OesQryStockReqT qryStock;
    OesQryEtfReqT qryEtf;
    OesQryEtfComponentReqT qryEtfComponent;
    OesQryOptionReqT qryOption;
    OesQryMarketStateReqT qryMktState;
    OesQryNotifyInfoReqT qryNotifyInfo;
    OesQryCounterCashReqT qryCounterCash;
    OesQryOptPositionLimitReqT qryOptPositionLimit;
    OesQryOptPurchaseLimitReqT qryOptPurchaseLimit;
    OesQryOptUnderlyingHoldingReqT qryOptUnderlyingHolding;
    OesQryOptExerciseAssignReqT qryOptExerciseAssign;
} OesQryReqMsgT;
# 2682 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
typedef union _OesQryRspMsg {
    OesQryOrdRspT ordRsp;
    OesQryTrdRspT trdRsp;
    OesQryCashAssetRspT cashAssetRsp;
    OesQryStkHoldingRspT stkHoldingRsp;
    OesQryOptHoldingRspT optHoldingRsp;
    OesQryCustRspT custRsp;
    OesQryInvAcctRspT invAcctRsp;
    OesQryCommissionRateRspT commsRateRsp;
    OesQryFundTransferSerialRspT fundTrsfRsp;
    OesQryLotWinningRspT lotWinningRsp;
    OesQryIssueRspT issueRsp;
    OesQryStockRspT stockRsp;
    OesQryEtfRspT etfRsp;
    OesQryEtfComponentRspT etfComponentRsp;
    OesQryOptionRspT optionRsp;
    OesQryTradingDayRspT tradingDay;
    OesQryMarketStateRspT mktStateRsp;
    OesQryNotifyInfoRspT notifyInfoRsp;
    OesClientOverviewT clientOverview;
    OesQryCounterCashRspT counterCashRsp;
    OesQryOptPositionLimitRspT optPositionLimitRsp;
    OesQryOptPurchaseLimitRspT optPurchaseLimitRsp;
    OesQryOptUnderlyingHoldingRspT optUnderlyingHoldingRsp;
    OesQryOptExerciseAssignRspT optExerciseAssignRsp;
    OesQryBrokerParamsInfoRspT brokerParamsRsp;
} OesQryRspMsgT;
# 2718 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_qry_packets.h"
}
# 127 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h" 2




extern "C" {
# 168 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef enum _eOesMsgType {



    OESMSG_ORD_NEW_ORDER = 0x01,
    OESMSG_ORD_CANCEL_REQUEST = 0x02,
    OESMSG_ORD_BATCH_ORDERS = 0x03,
    __OESMSG_ORD_MAX,




    __OESMSG_RPT_MIN = 0x0F,
    OESMSG_RPT_MARKET_STATE = 0x10,
    OESMSG_RPT_REPORT_SYNCHRONIZATION = 0x11,

    OESMSG_RPT_BUSINESS_REJECT = 0x12,
    OESMSG_RPT_ORDER_INSERT = 0x13,
    OESMSG_RPT_ORDER_REPORT = 0x14,
    OESMSG_RPT_TRADE_REPORT = 0x15,

    OESMSG_RPT_FUND_TRSF_REJECT = 0x16,
    OESMSG_RPT_FUND_TRSF_REPORT = 0x17,

    OESMSG_RPT_CASH_ASSET_VARIATION = 0x18,
    OESMSG_RPT_STOCK_HOLDING_VARIATION = 0x19,
    OESMSG_RPT_OPTION_HOLDING_VARIATION = 0x1A,
    OESMSG_RPT_OPTION_UNDERLYING_HOLDING_VARIATION
                                                = 0x1B,
    OESMSG_RPT_OPTION_SETTLEMENT_CONFIRMED = 0x1C,

    OESMSG_RPT_NOTIFY_INFO = 0x1E,
    OESMSG_RPT_SERVICE_STATE = 0x1F,
    __OESMSG_RPT_MAX,




    __OESMSG_NONTRD_MIN = 0x20,
    OESMSG_NONTRD_FUND_TRSF_REQ = 0x21,
    OESMSG_NONTRD_CHANGE_PASSWORD = 0x22,
    OESMSG_NONTRD_OPT_CONFIRM_SETTLEMENT = 0x23,
    __OESMSG_NONTRD_MAX,




    __OESMSG_QRYMSG_MIN = 0x2F,
    OESMSG_QRYMSG_CLIENT_OVERVIEW = 0x30,
    OESMSG_QRYMSG_STK_HLD = 0x34,
    OESMSG_QRYMSG_OPT_HLD = 0x35,
    OESMSG_QRYMSG_CUST = 0x36,
    OESMSG_QRYMSG_COMMISSION_RATE = 0x38,
    OESMSG_QRYMSG_FUND_TRSF = 0x39,
    OESMSG_QRYMSG_ETF = 0x3B,
    OESMSG_QRYMSG_ETF_COMPONENT = 0x3C,
    OESMSG_QRYMSG_OPTION = 0x3D,
    OESMSG_QRYMSG_ISSUE = 0x3E,
    OESMSG_QRYMSG_LOT_WINNING = 0x3F,
    OESMSG_QRYMSG_TRADING_DAY = 0x40,
    OESMSG_QRYMSG_MARKET_STATE = 0x41,
    OESMSG_QRYMSG_COUNTER_CASH = 0x42,
    OESMSG_QRYMSG_OPT_UNDERLYING_HLD = 0x43,
    OESMSG_QRYMSG_NOTIFY_INFO = 0x44,
    OESMSG_QRYMSG_OPT_POSITION_LIMIT = 0x45,
    OESMSG_QRYMSG_OPT_PURCHASE_LIMIT = 0x46,
    OESMSG_QRYMSG_BROKER_PARAMS = 0x48,

    OESMSG_QRYMSG_INV_ACCT = 0x51,
    OESMSG_QRYMSG_STOCK = 0x52,
    OESMSG_QRYMSG_CASH_ASSET = 0x53,
    OESMSG_QRYMSG_ORD = 0x54,
    OESMSG_QRYMSG_TRD = 0x55,
    OESMSG_QRYMSG_OPT_EXERCISE_ASSIGN = 0x56,
    __OESMSG_QRYMSG_MAX,




    OESMSG_SESS_HEARTBEAT = 0xFA,
    OESMSG_SESS_TEST_REQUEST = 0xFB,
    OESMSG_SESS_LOGIN_EXTEND = 0xFC,
    OESMSG_SESS_LOGOUT = 0xFE,




    OESMSG_RPT_ORDER_REJECT = OESMSG_RPT_BUSINESS_REJECT,

    OESMSG_QRYMSG_ORD_L001509 = 0x31,
    OESMSG_QRYMSG_TRD_L001509 = 0x32,
    OESMSG_QRYMSG_CASH_ASSET_L001509 = 0x33,
    OESMSG_QRYMSG_INV_ACCT_L001508 = 0x37,
    OESMSG_QRYMSG_STOCK_L001508 = 0x3A,
    OESMSG_QRYMSG_OPT_EXERCISE_ASSIGN_L001600 = 0x47

} eOesMsgTypeT;
# 282 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef enum _eOesSubscribeReportType {

    OES_SUB_RPT_TYPE_DEFAULT = 0,


    OES_SUB_RPT_TYPE_BUSINESS_REJECT = 0x01,


    OES_SUB_RPT_TYPE_ORDER_INSERT = 0x02,


    OES_SUB_RPT_TYPE_ORDER_REPORT = 0x04,


    OES_SUB_RPT_TYPE_TRADE_REPORT = 0x08,


    OES_SUB_RPT_TYPE_FUND_TRSF_REPORT = 0x10,


    OES_SUB_RPT_TYPE_CASH_ASSET_VARIATION = 0x20,


    OES_SUB_RPT_TYPE_HOLDING_VARIATION = 0x40,


    OES_SUB_RPT_TYPE_MARKET_STATE = 0x80,


    OES_SUB_RPT_TYPE_NOTIFY_INFO = 0x100,


    OES_SUB_RPT_TYPE_SETTLEMETN_CONFIRMED = 0x200,


    OES_SUB_RPT_TYPE_ALL = 0xFFFF,

    __MAX_OES_SUB_RPT_TYPE = 0x7FFFFFFF
} eOesSubscribeReportTypeT;
# 330 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef enum _eOesProtocolHintsType {

    OES_PROT_HINTS_TYPE_DEFAULT = 0,


    OES_PROT_HINTS_TYPE_COMPRESS = 0x80,


    OES_PROT_HINTS_TYPE_NONE = 0xFF,
    __MAX_OES_PROT_HINTS_TYPE = 0xFF
} eOesProtocolHintsTypeT;
# 351 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesReportSynchronizationReq {






    int64 lastRptSeqNum;






    int8 subscribeEnvId;


    uint8 __filler[3];
# 386 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
    int32 subscribeRptTypes;
} OesReportSynchronizationReqT;
# 399 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesReportSynchronizationRsp {

    int64 lastRptSeqNum;






    int8 subscribeEnvId;


    uint8 __filler[3];


    int32 subscribeRptTypes;
} OesReportSynchronizationRspT;
# 427 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesTestRequestReq {

    char testReqId[(32)];


    char sendTime[(22)];


    char __filler[2];
} OesTestRequestReqT;
# 448 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesTestRequestRsp {

    char testReqId[(32)];


    char origSendTime[(22)];


    char __filler1[2];


    char respTime[(22)];


    char __filler2[2];



    STimeval32T __recvTime;

    STimeval32T __collectedTime;

    STimeval32T __pushingTime;


} OesTestRequestRspT;
# 495 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesChangePasswordReq {

    int32 encryptMethod;

    int32 __filler;


    char username[(32)];


    union {
        uint64 u64;
        int64 i64;
        uint32 u32[2];
        int32 i32[2];
        char c8[8];
    } userInfo;


    char oldPassword[(40)];


    char newPassword[(40)];
} OesChangePasswordReqT;
# 532 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesChangePasswordRsp {

    int32 encryptMethod;

    int32 __filler;


    char username[(32)];


    union {
        uint64 u64;
        int64 i64;
        uint32 u32[2];
        int32 i32[2];
        char c8[8];
    } userInfo;


    int16 clientId;

    int8 clEnvId;

    int8 __filler2;


    int32 transDate;

    int32 transTime;

    int32 rejReason;
} OesChangePasswordRspT;
# 578 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesBatchOrdersHead {

    int32 itemCount;

    int32 __filler;
} OesBatchOrdersHeadT;






typedef struct _OesBatchOrdersReq {

    OesBatchOrdersHeadT batchHead;


    OesOrdReqT items[1];
} OesBatchOrdersReqT;
# 613 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesOptSettlementConfirmReq {

    char custId[(16)];


    union {
        uint64 u64;
        int64 i64;
        uint32 u32[2];
        int32 i32[2];
        char c8[8];
    } userInfo;
} OesOptSettlementConfirmReqT;
# 637 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef OesOptSettlementConfirmBaseInfoT OesOptSettlementConfirmRspT;
# 653 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesRptMsgHead {
    int64 rptSeqNum;

    uint8 rptMsgType;
    uint8 execType;
    int16 bodyLength;

    int32 ordRejReason;
} OesRptMsgHeadT;
# 673 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef union _OesRptMsgBody {
    OesOrdCnfmT ordInsertRsp;
    OesOrdRejectT ordRejectRsp;

    OesOrdCnfmT ordCnfm;
    OesTrdCnfmT trdCnfm;

    OesFundTrsfRejectT fundTrsfRejectRsp;
    OesFundTrsfReportT fundTrsfCnfm;

    OesCashAssetReportT cashAssetRpt;
    OesStkHoldingReportT
                        stkHoldingRpt;
    OesOptHoldingReportT
                        optHoldingRpt;
    OesOptUnderlyingHoldingReportT
                        optUnderlyingHoldingRpt;

    OesNotifyInfoReportT
                        notifyInfoRpt;
    OesOptSettlementConfirmReportT
                        optSettlementConfirmRpt;

} OesRptMsgBodyT;
# 708 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef struct _OesRptMsg {
    OesRptMsgHeadT rptHead;
    OesRptMsgBodyT rptBody;
} OesRptMsgT;
# 728 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef union _OesReqMsgBody {

    OesOrdReqT ordReq;


    OesOrdCancelReqT ordCancelReq;


    OesBatchOrdersReqT batchOrdersReq;


    OesFundTrsfReqT fundTrsfReq;


    OesChangePasswordReqT
                        changePasswordReq;


    OesOptSettlementConfirmReqT
                        optSettlementConfirmReq;


    OesTestRequestReqT testRequestReq;


    OesReportSynchronizationReqT
                        rptSyncReq;
} OesReqMsgBodyT;
# 767 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
typedef union _OesRspMsgBody {

    OesRptMsgT rptMsg;


    OesMarketStateInfoT mktStateRpt;


    OesTestRequestRspT testRequestRsp;


    OesReportSynchronizationRspT
                        reportSynchronizationRsp;


    OesChangePasswordRspT
                        changePasswordRsp;


    OesOptSettlementConfirmRspT
                        optSettlementConfirmRsp;
} OesRspMsgBodyT;
# 798 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_global/oes_packets.h"
}
# 289 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/errors/oes_errors.h" 1
# 90 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/errors/oes_errors.h"
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_errmsg_base_define.h" 1
# 35 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_errmsg_base_define.h"
extern "C" {
# 55 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_errmsg_base_define.h"
typedef struct _SErrMsg {
    int16 __index;
    uint8 MODULE;
    uint8 CODE;
    uint16 __errCode;
    int16 __msgSize;


    char MSG[(96)];
} SErrMsgT;
# 75 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_errmsg_base_define.h"
}
# 91 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/errors/oes_errors.h" 2



extern "C" {






extern SErrMsgT __ERRS_oesApiErrors[];
# 416 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/errors/oes_errors.h"
}
# 290 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h" 1
# 32 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_data_buffer_define.h" 1
# 35 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_data_buffer_define.h"
extern "C" {
# 57 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_data_buffer_define.h"
typedef struct _SDataBuffer {
    int32 dataSize;
    int32 const bufSize;
    char * const buffer;
    void *__ref;
} SDataBufferT;





struct _SDataBufferVar {
    int32 dataSize;
    int32 bufSize;
    char *buffer;
    void *__ref;
};
# 83 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_data_buffer_define.h"
}
# 33 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h" 1
# 35 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h"
extern "C" {
# 137 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h"
typedef enum _eSSocketProtocolType {
    SPK_SOCKET_PROTOCOL_TCP = 0,
    SPK_SOCKET_PROTOCOL_IPC = 1,
    SPK_SOCKET_PROTOCOL_UDP_UCAST = 2,
    SPK_SOCKET_PROTOCOL_UDP_MCAST = 3,
    SPK_SOCKET_PROTOCOL_PGM = 4,
    SPK_SOCKET_PROTOCOL_EPGM = 5,
    __MAX_SPK_SOCKET_PROTOCOL
} eSSocketProtocolTypeT;
# 156 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h"
typedef struct _SSocketUriInfo {

    char uri[(128)];
} SSocketUriInfoT;
# 171 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h"
typedef struct _SSocketIpPortInfo {

    int32 port;

    char ip[(16) + 4];
} SSocketIpPortInfoT;
# 188 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h"
typedef struct _SSocketChannelInfo {
    union {

        int32 socketFd;

        uint64 __socket_fd_filler;
    };


    int32 remotePort;





    uint8 protocolType;


    uint8 _isNetByteOrder;


    uint8 _isBroken;


    uint8 _isSendBroken;


    char remoteAddr[(128)];


    int64 connectTime;


    uint8 _isTryConnecting;


    uint8 __filler[7];
} SSocketChannelInfoT;
# 239 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h"
typedef struct _SSocketOptionConfig {

    int32 soRcvbuf;

    int32 soSndbuf;


    int8 tcpNodelay;

    int8 quickAck;


    int8 mcastTtlNum;

    int8 mcastLoopbackDisabled;


    uint16 soBacklog;

    uint16 connTimeoutMs;


    int16 keepIdle;

    int16 keepIntvl;

    int8 keepalive;

    int8 keepCnt;

    int8 __filler[6];


    int32 localSendingPort;

    char localSendingIp[(16) + 4];

    char mcastInterfaceIp[(16) + 4];
} SSocketOptionConfigT;
# 294 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_socket_base_define.h"
}
# 34 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h" 2



extern "C" {
# 98 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
typedef enum _eGeneralClientClusterType {
    GENERAL_CLI_CLUSTER_UNDEFINED = 0,
    GENERAL_CLI_CLUSTER_REPLICA_SET = 1,
    GENERAL_CLI_CLUSTER_PEER_NODES = 2,
    __MAX_GENERAL_CLI_CLUSTER_TYPE
} eGeneralClientClusterTypeT;






typedef enum _eGeneralClientEncryptType {
    GENERAL_CLI_ENCRYPT_NONE = 0,
    GENERAL_CLI_ENCRYPT_MD5 = 0x01,
    GENERAL_CLI_ENCRYPT_SHA = 0x02,
    GENERAL_CLI_ENCRYPT_DES = 0x10,
    GENERAL_CLI_ENCRYPT_AES = 0x20,
    GENERAL_CLI_ENCRYPT_RSA = 0x40,

    __GENERAL_CLI_ENCRYPT_MASK_DIGESTED = 0x0F,
    __GENERAL_CLI_ENCRYPT_MASK_ENCRYPTED = 0xF0
} eGeneralClientEncryptTypeT;
# 131 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
typedef struct _SGeneralClientChannel {
    union {

        int32 socketFd;

        uint64 __socket_fd_filler;
    };

    int32 heartBtInt;
    int32 testReqInt;
    uint8 protocolType;
    uint8 remoteSetNum;
    uint8 remoteHostNum;
    uint8 remoteIsLeader;
    uint8 leaderHostNum;
    uint8 __filler1[3];

    struct _SDataBufferVar
                        __codecBuf;
    struct _SDataBufferVar
                        __recvBuf;
    char *__pDataStartPoint;
    void *__contextPtr;
    void *__monitorPtr;
    void *__customPtr;
    int32 __reavedSize;
    int32 __customFlag;
    int64 __totalInMsgSize;
    int64 __totalCompressedSize;
    int64 __totalDecompressSize;

    uint64 firstInMsgSeq;
    uint64 lastInMsgSeq;
    uint64 nextInMsgSeq;
    struct timeval lastRecvTime;

    SSocketChannelInfoT channel;
    uint64 nextOutMsgSeq;
    uint64 lastOutMsgSeq;
    struct timeval lastSendTime;


    char senderCompId[(32)];

    char targetCompId[(32)];

    int32 __magicNumber;
    int32 __magicSize;

    uint8 __channelType;
    int8 __clEnvId;
    uint8 __groupFlag;
    uint8 __protocolHints;
    uint8 __businessScope;
    uint8 __filler[3];


    union {
        char buf[(128)];
        int8 i8[(128)];
        uint8 u8[(128)];
        int16 i16[(128) / 2];
        uint16 u16[(128) / 2];
        int32 i32[(128) / 4];
        uint32 u32[(128) / 4];
        int64 i64[(128) / 8];
        uint64 u64[(128) / 8];
        void *ptr[(128) / 8];
        char __padding[(128)
                                  + (64)];
    } __reserveData;


    union {
        char buf[(128)];
        int8 i8[(128)];
        uint8 u8[(128)];
        int16 i16[(128) / 2];
        uint16 u16[(128) / 2];
        int32 i32[(128) / 4];
        uint32 u32[(128) / 4];
        int64 i64[(128) / 8];
        uint64 u64[(128) / 8];
        void *ptr[(128) / 8];
    } __extData;
} SGeneralClientChannelT;
# 240 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
typedef struct _SGeneralClientChannelGroup {

    int32 channelCount;

    int32 __customFlag;

    SGeneralClientChannelT
                        *channelList[(256)];


    int32 __maxFd;

    int16 __maxFdCnt;

    uint8 __groupFlag;

    uint8 __filler;

    union {
        struct pollfd __fdArray[(256)];
        fd_set __fdSet;
    };
} SGeneralClientChannelGroupT;
# 276 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
typedef struct _SGeneralClientAddrInfo {

    char uri[(128)];

    char targetCompId[(32)];

    char username[(32)];

    char password[(40)];


    uint8 hostNum;

    uint8 __filler[7];
} SGeneralClientAddrInfoT;
# 303 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
typedef struct _SGeneralClientRemoteCfg {
    int32 addrCnt;
    int32 heartBtInt;
    uint8 clusterType;
    int8 clEnvId;
    uint8 targetSetNum;
    uint8 __filler[5];


    char senderCompId[(32)];

    char targetCompId[(32)];

    char username[(32)];

    char password[(40)];


    SGeneralClientAddrInfoT
                        addrList[(8)];


    SSocketOptionConfigT
                        socketOpt;
} SGeneralClientRemoteCfgT;
# 342 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
typedef struct _SGeneralClientAddrCursor {
    int32 addrCnt;
    int32 lastConnectIdx;
    int32 lastConnectResult;
    uint8 lastHostNum;
    uint8 isLast;
    uint8 __filler1[2];
    union {
        int32 socketFd;
        uint64 __socket_fd_filler;
    };

    const SGeneralClientAddrInfoT
                        *pLastAddrInfo;
    void *__filler2;
} SGeneralClientAddrCursorT;
# 412 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_client_define.h"
}
# 291 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 1
# 38 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h"
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h" 1 3
# 39 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h" 1 3
# 87 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 88 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h" 2 3
# 91 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h" 3


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 1 3 4
# 66 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h" 1 3 4
# 79 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h" 3 4
typedef enum {
 P_ALL,
 P_PID,
 P_PGID
} idtype_t;
# 109 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 1 3 4
# 82 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/signal.h" 1 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/signal.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/signal.h" 1 3 4
# 39 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/signal.h" 3 4
typedef int sig_atomic_t;
# 33 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/signal.h" 2 3 4
# 83 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 2 3 4
# 146 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h" 1 3 4
# 29 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h" 1 3 4
# 34 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/_structs.h" 1 3 4
# 33 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/_structs.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 1 3 4
# 46 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_i386_thread_state
{
    unsigned int __eax;
    unsigned int __ebx;
    unsigned int __ecx;
    unsigned int __edx;
    unsigned int __edi;
    unsigned int __esi;
    unsigned int __ebp;
    unsigned int __esp;
    unsigned int __ss;
    unsigned int __eflags;
    unsigned int __eip;
    unsigned int __cs;
    unsigned int __ds;
    unsigned int __es;
    unsigned int __fs;
    unsigned int __gs;
};
# 92 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_fp_control
{
    unsigned short __invalid :1,
        __denorm :1,
    __zdiv :1,
    __ovrfl :1,
    __undfl :1,
    __precis :1,
      :2,
    __pc :2,





    __rc :2,






             :1,
      :3;
};
typedef struct __darwin_fp_control __darwin_fp_control_t;
# 150 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_fp_status
{
    unsigned short __invalid :1,
        __denorm :1,
    __zdiv :1,
    __ovrfl :1,
    __undfl :1,
    __precis :1,
    __stkflt :1,
    __errsumm :1,
    __c0 :1,
    __c1 :1,
    __c2 :1,
    __tos :3,
    __c3 :1,
    __busy :1;
};
typedef struct __darwin_fp_status __darwin_fp_status_t;
# 194 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_mmst_reg
{
 char __mmst_reg[10];
 char __mmst_rsrv[6];
};
# 213 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_xmm_reg
{
 char __xmm_reg[16];
};
# 229 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_ymm_reg
{
 char __ymm_reg[32];
};
# 245 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_zmm_reg
{
 char __zmm_reg[64];
};
# 259 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_opmask_reg
{
 char __opmask_reg[8];
};
# 281 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_i386_float_state
{
 int __fpu_reserved[2];
 struct __darwin_fp_control __fpu_fcw;
 struct __darwin_fp_status __fpu_fsw;
 __uint8_t __fpu_ftw;
 __uint8_t __fpu_rsrv1;
 __uint16_t __fpu_fop;
 __uint32_t __fpu_ip;
 __uint16_t __fpu_cs;
 __uint16_t __fpu_rsrv2;
 __uint32_t __fpu_dp;
 __uint16_t __fpu_ds;
 __uint16_t __fpu_rsrv3;
 __uint32_t __fpu_mxcsr;
 __uint32_t __fpu_mxcsrmask;
 struct __darwin_mmst_reg __fpu_stmm0;
 struct __darwin_mmst_reg __fpu_stmm1;
 struct __darwin_mmst_reg __fpu_stmm2;
 struct __darwin_mmst_reg __fpu_stmm3;
 struct __darwin_mmst_reg __fpu_stmm4;
 struct __darwin_mmst_reg __fpu_stmm5;
 struct __darwin_mmst_reg __fpu_stmm6;
 struct __darwin_mmst_reg __fpu_stmm7;
 struct __darwin_xmm_reg __fpu_xmm0;
 struct __darwin_xmm_reg __fpu_xmm1;
 struct __darwin_xmm_reg __fpu_xmm2;
 struct __darwin_xmm_reg __fpu_xmm3;
 struct __darwin_xmm_reg __fpu_xmm4;
 struct __darwin_xmm_reg __fpu_xmm5;
 struct __darwin_xmm_reg __fpu_xmm6;
 struct __darwin_xmm_reg __fpu_xmm7;
 char __fpu_rsrv4[14*16];
 int __fpu_reserved1;
};


struct __darwin_i386_avx_state
{
 int __fpu_reserved[2];
 struct __darwin_fp_control __fpu_fcw;
 struct __darwin_fp_status __fpu_fsw;
 __uint8_t __fpu_ftw;
 __uint8_t __fpu_rsrv1;
 __uint16_t __fpu_fop;
 __uint32_t __fpu_ip;
 __uint16_t __fpu_cs;
 __uint16_t __fpu_rsrv2;
 __uint32_t __fpu_dp;
 __uint16_t __fpu_ds;
 __uint16_t __fpu_rsrv3;
 __uint32_t __fpu_mxcsr;
 __uint32_t __fpu_mxcsrmask;
 struct __darwin_mmst_reg __fpu_stmm0;
 struct __darwin_mmst_reg __fpu_stmm1;
 struct __darwin_mmst_reg __fpu_stmm2;
 struct __darwin_mmst_reg __fpu_stmm3;
 struct __darwin_mmst_reg __fpu_stmm4;
 struct __darwin_mmst_reg __fpu_stmm5;
 struct __darwin_mmst_reg __fpu_stmm6;
 struct __darwin_mmst_reg __fpu_stmm7;
 struct __darwin_xmm_reg __fpu_xmm0;
 struct __darwin_xmm_reg __fpu_xmm1;
 struct __darwin_xmm_reg __fpu_xmm2;
 struct __darwin_xmm_reg __fpu_xmm3;
 struct __darwin_xmm_reg __fpu_xmm4;
 struct __darwin_xmm_reg __fpu_xmm5;
 struct __darwin_xmm_reg __fpu_xmm6;
 struct __darwin_xmm_reg __fpu_xmm7;
 char __fpu_rsrv4[14*16];
 int __fpu_reserved1;
 char __avx_reserved1[64];
 struct __darwin_xmm_reg __fpu_ymmh0;
 struct __darwin_xmm_reg __fpu_ymmh1;
 struct __darwin_xmm_reg __fpu_ymmh2;
 struct __darwin_xmm_reg __fpu_ymmh3;
 struct __darwin_xmm_reg __fpu_ymmh4;
 struct __darwin_xmm_reg __fpu_ymmh5;
 struct __darwin_xmm_reg __fpu_ymmh6;
 struct __darwin_xmm_reg __fpu_ymmh7;
};


struct __darwin_i386_avx512_state
{
 int __fpu_reserved[2];
 struct __darwin_fp_control __fpu_fcw;
 struct __darwin_fp_status __fpu_fsw;
 __uint8_t __fpu_ftw;
 __uint8_t __fpu_rsrv1;
 __uint16_t __fpu_fop;
 __uint32_t __fpu_ip;
 __uint16_t __fpu_cs;
 __uint16_t __fpu_rsrv2;
 __uint32_t __fpu_dp;
 __uint16_t __fpu_ds;
 __uint16_t __fpu_rsrv3;
 __uint32_t __fpu_mxcsr;
 __uint32_t __fpu_mxcsrmask;
 struct __darwin_mmst_reg __fpu_stmm0;
 struct __darwin_mmst_reg __fpu_stmm1;
 struct __darwin_mmst_reg __fpu_stmm2;
 struct __darwin_mmst_reg __fpu_stmm3;
 struct __darwin_mmst_reg __fpu_stmm4;
 struct __darwin_mmst_reg __fpu_stmm5;
 struct __darwin_mmst_reg __fpu_stmm6;
 struct __darwin_mmst_reg __fpu_stmm7;
 struct __darwin_xmm_reg __fpu_xmm0;
 struct __darwin_xmm_reg __fpu_xmm1;
 struct __darwin_xmm_reg __fpu_xmm2;
 struct __darwin_xmm_reg __fpu_xmm3;
 struct __darwin_xmm_reg __fpu_xmm4;
 struct __darwin_xmm_reg __fpu_xmm5;
 struct __darwin_xmm_reg __fpu_xmm6;
 struct __darwin_xmm_reg __fpu_xmm7;
 char __fpu_rsrv4[14*16];
 int __fpu_reserved1;
 char __avx_reserved1[64];
 struct __darwin_xmm_reg __fpu_ymmh0;
 struct __darwin_xmm_reg __fpu_ymmh1;
 struct __darwin_xmm_reg __fpu_ymmh2;
 struct __darwin_xmm_reg __fpu_ymmh3;
 struct __darwin_xmm_reg __fpu_ymmh4;
 struct __darwin_xmm_reg __fpu_ymmh5;
 struct __darwin_xmm_reg __fpu_ymmh6;
 struct __darwin_xmm_reg __fpu_ymmh7;
 struct __darwin_opmask_reg __fpu_k0;
 struct __darwin_opmask_reg __fpu_k1;
 struct __darwin_opmask_reg __fpu_k2;
 struct __darwin_opmask_reg __fpu_k3;
 struct __darwin_opmask_reg __fpu_k4;
 struct __darwin_opmask_reg __fpu_k5;
 struct __darwin_opmask_reg __fpu_k6;
 struct __darwin_opmask_reg __fpu_k7;
 struct __darwin_ymm_reg __fpu_zmmh0;
 struct __darwin_ymm_reg __fpu_zmmh1;
 struct __darwin_ymm_reg __fpu_zmmh2;
 struct __darwin_ymm_reg __fpu_zmmh3;
 struct __darwin_ymm_reg __fpu_zmmh4;
 struct __darwin_ymm_reg __fpu_zmmh5;
 struct __darwin_ymm_reg __fpu_zmmh6;
 struct __darwin_ymm_reg __fpu_zmmh7;
};
# 575 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_i386_exception_state
{
 __uint16_t __trapno;
 __uint16_t __cpu;
 __uint32_t __err;
 __uint32_t __faultvaddr;
};
# 595 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_x86_debug_state32
{
 unsigned int __dr0;
 unsigned int __dr1;
 unsigned int __dr2;
 unsigned int __dr3;
 unsigned int __dr4;
 unsigned int __dr5;
 unsigned int __dr6;
 unsigned int __dr7;
};
# 622 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __x86_pagein_state
{
 int __pagein_error;
};







struct __darwin_x86_thread_state64
{
 __uint64_t __rax;
 __uint64_t __rbx;
 __uint64_t __rcx;
 __uint64_t __rdx;
 __uint64_t __rdi;
 __uint64_t __rsi;
 __uint64_t __rbp;
 __uint64_t __rsp;
 __uint64_t __r8;
 __uint64_t __r9;
 __uint64_t __r10;
 __uint64_t __r11;
 __uint64_t __r12;
 __uint64_t __r13;
 __uint64_t __r14;
 __uint64_t __r15;
 __uint64_t __rip;
 __uint64_t __rflags;
 __uint64_t __cs;
 __uint64_t __fs;
 __uint64_t __gs;
};
# 691 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_x86_thread_full_state64
{
 struct __darwin_x86_thread_state64 __ss64;
 __uint64_t __ds;
 __uint64_t __es;
 __uint64_t __ss;
 __uint64_t __gsbase;
};
# 714 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_x86_float_state64
{
 int __fpu_reserved[2];
 struct __darwin_fp_control __fpu_fcw;
 struct __darwin_fp_status __fpu_fsw;
 __uint8_t __fpu_ftw;
 __uint8_t __fpu_rsrv1;
 __uint16_t __fpu_fop;


 __uint32_t __fpu_ip;
 __uint16_t __fpu_cs;

 __uint16_t __fpu_rsrv2;


 __uint32_t __fpu_dp;
 __uint16_t __fpu_ds;

 __uint16_t __fpu_rsrv3;
 __uint32_t __fpu_mxcsr;
 __uint32_t __fpu_mxcsrmask;
 struct __darwin_mmst_reg __fpu_stmm0;
 struct __darwin_mmst_reg __fpu_stmm1;
 struct __darwin_mmst_reg __fpu_stmm2;
 struct __darwin_mmst_reg __fpu_stmm3;
 struct __darwin_mmst_reg __fpu_stmm4;
 struct __darwin_mmst_reg __fpu_stmm5;
 struct __darwin_mmst_reg __fpu_stmm6;
 struct __darwin_mmst_reg __fpu_stmm7;
 struct __darwin_xmm_reg __fpu_xmm0;
 struct __darwin_xmm_reg __fpu_xmm1;
 struct __darwin_xmm_reg __fpu_xmm2;
 struct __darwin_xmm_reg __fpu_xmm3;
 struct __darwin_xmm_reg __fpu_xmm4;
 struct __darwin_xmm_reg __fpu_xmm5;
 struct __darwin_xmm_reg __fpu_xmm6;
 struct __darwin_xmm_reg __fpu_xmm7;
 struct __darwin_xmm_reg __fpu_xmm8;
 struct __darwin_xmm_reg __fpu_xmm9;
 struct __darwin_xmm_reg __fpu_xmm10;
 struct __darwin_xmm_reg __fpu_xmm11;
 struct __darwin_xmm_reg __fpu_xmm12;
 struct __darwin_xmm_reg __fpu_xmm13;
 struct __darwin_xmm_reg __fpu_xmm14;
 struct __darwin_xmm_reg __fpu_xmm15;
 char __fpu_rsrv4[6*16];
 int __fpu_reserved1;
};


struct __darwin_x86_avx_state64
{
 int __fpu_reserved[2];
 struct __darwin_fp_control __fpu_fcw;
 struct __darwin_fp_status __fpu_fsw;
 __uint8_t __fpu_ftw;
 __uint8_t __fpu_rsrv1;
 __uint16_t __fpu_fop;


 __uint32_t __fpu_ip;
 __uint16_t __fpu_cs;

 __uint16_t __fpu_rsrv2;


 __uint32_t __fpu_dp;
 __uint16_t __fpu_ds;

 __uint16_t __fpu_rsrv3;
 __uint32_t __fpu_mxcsr;
 __uint32_t __fpu_mxcsrmask;
 struct __darwin_mmst_reg __fpu_stmm0;
 struct __darwin_mmst_reg __fpu_stmm1;
 struct __darwin_mmst_reg __fpu_stmm2;
 struct __darwin_mmst_reg __fpu_stmm3;
 struct __darwin_mmst_reg __fpu_stmm4;
 struct __darwin_mmst_reg __fpu_stmm5;
 struct __darwin_mmst_reg __fpu_stmm6;
 struct __darwin_mmst_reg __fpu_stmm7;
 struct __darwin_xmm_reg __fpu_xmm0;
 struct __darwin_xmm_reg __fpu_xmm1;
 struct __darwin_xmm_reg __fpu_xmm2;
 struct __darwin_xmm_reg __fpu_xmm3;
 struct __darwin_xmm_reg __fpu_xmm4;
 struct __darwin_xmm_reg __fpu_xmm5;
 struct __darwin_xmm_reg __fpu_xmm6;
 struct __darwin_xmm_reg __fpu_xmm7;
 struct __darwin_xmm_reg __fpu_xmm8;
 struct __darwin_xmm_reg __fpu_xmm9;
 struct __darwin_xmm_reg __fpu_xmm10;
 struct __darwin_xmm_reg __fpu_xmm11;
 struct __darwin_xmm_reg __fpu_xmm12;
 struct __darwin_xmm_reg __fpu_xmm13;
 struct __darwin_xmm_reg __fpu_xmm14;
 struct __darwin_xmm_reg __fpu_xmm15;
 char __fpu_rsrv4[6*16];
 int __fpu_reserved1;
 char __avx_reserved1[64];
 struct __darwin_xmm_reg __fpu_ymmh0;
 struct __darwin_xmm_reg __fpu_ymmh1;
 struct __darwin_xmm_reg __fpu_ymmh2;
 struct __darwin_xmm_reg __fpu_ymmh3;
 struct __darwin_xmm_reg __fpu_ymmh4;
 struct __darwin_xmm_reg __fpu_ymmh5;
 struct __darwin_xmm_reg __fpu_ymmh6;
 struct __darwin_xmm_reg __fpu_ymmh7;
 struct __darwin_xmm_reg __fpu_ymmh8;
 struct __darwin_xmm_reg __fpu_ymmh9;
 struct __darwin_xmm_reg __fpu_ymmh10;
 struct __darwin_xmm_reg __fpu_ymmh11;
 struct __darwin_xmm_reg __fpu_ymmh12;
 struct __darwin_xmm_reg __fpu_ymmh13;
 struct __darwin_xmm_reg __fpu_ymmh14;
 struct __darwin_xmm_reg __fpu_ymmh15;
};


struct __darwin_x86_avx512_state64
{
 int __fpu_reserved[2];
 struct __darwin_fp_control __fpu_fcw;
 struct __darwin_fp_status __fpu_fsw;
 __uint8_t __fpu_ftw;
 __uint8_t __fpu_rsrv1;
 __uint16_t __fpu_fop;


 __uint32_t __fpu_ip;
 __uint16_t __fpu_cs;

 __uint16_t __fpu_rsrv2;


 __uint32_t __fpu_dp;
 __uint16_t __fpu_ds;

 __uint16_t __fpu_rsrv3;
 __uint32_t __fpu_mxcsr;
 __uint32_t __fpu_mxcsrmask;
 struct __darwin_mmst_reg __fpu_stmm0;
 struct __darwin_mmst_reg __fpu_stmm1;
 struct __darwin_mmst_reg __fpu_stmm2;
 struct __darwin_mmst_reg __fpu_stmm3;
 struct __darwin_mmst_reg __fpu_stmm4;
 struct __darwin_mmst_reg __fpu_stmm5;
 struct __darwin_mmst_reg __fpu_stmm6;
 struct __darwin_mmst_reg __fpu_stmm7;
 struct __darwin_xmm_reg __fpu_xmm0;
 struct __darwin_xmm_reg __fpu_xmm1;
 struct __darwin_xmm_reg __fpu_xmm2;
 struct __darwin_xmm_reg __fpu_xmm3;
 struct __darwin_xmm_reg __fpu_xmm4;
 struct __darwin_xmm_reg __fpu_xmm5;
 struct __darwin_xmm_reg __fpu_xmm6;
 struct __darwin_xmm_reg __fpu_xmm7;
 struct __darwin_xmm_reg __fpu_xmm8;
 struct __darwin_xmm_reg __fpu_xmm9;
 struct __darwin_xmm_reg __fpu_xmm10;
 struct __darwin_xmm_reg __fpu_xmm11;
 struct __darwin_xmm_reg __fpu_xmm12;
 struct __darwin_xmm_reg __fpu_xmm13;
 struct __darwin_xmm_reg __fpu_xmm14;
 struct __darwin_xmm_reg __fpu_xmm15;
 char __fpu_rsrv4[6*16];
 int __fpu_reserved1;
 char __avx_reserved1[64];
 struct __darwin_xmm_reg __fpu_ymmh0;
 struct __darwin_xmm_reg __fpu_ymmh1;
 struct __darwin_xmm_reg __fpu_ymmh2;
 struct __darwin_xmm_reg __fpu_ymmh3;
 struct __darwin_xmm_reg __fpu_ymmh4;
 struct __darwin_xmm_reg __fpu_ymmh5;
 struct __darwin_xmm_reg __fpu_ymmh6;
 struct __darwin_xmm_reg __fpu_ymmh7;
 struct __darwin_xmm_reg __fpu_ymmh8;
 struct __darwin_xmm_reg __fpu_ymmh9;
 struct __darwin_xmm_reg __fpu_ymmh10;
 struct __darwin_xmm_reg __fpu_ymmh11;
 struct __darwin_xmm_reg __fpu_ymmh12;
 struct __darwin_xmm_reg __fpu_ymmh13;
 struct __darwin_xmm_reg __fpu_ymmh14;
 struct __darwin_xmm_reg __fpu_ymmh15;
 struct __darwin_opmask_reg __fpu_k0;
 struct __darwin_opmask_reg __fpu_k1;
 struct __darwin_opmask_reg __fpu_k2;
 struct __darwin_opmask_reg __fpu_k3;
 struct __darwin_opmask_reg __fpu_k4;
 struct __darwin_opmask_reg __fpu_k5;
 struct __darwin_opmask_reg __fpu_k6;
 struct __darwin_opmask_reg __fpu_k7;
 struct __darwin_ymm_reg __fpu_zmmh0;
 struct __darwin_ymm_reg __fpu_zmmh1;
 struct __darwin_ymm_reg __fpu_zmmh2;
 struct __darwin_ymm_reg __fpu_zmmh3;
 struct __darwin_ymm_reg __fpu_zmmh4;
 struct __darwin_ymm_reg __fpu_zmmh5;
 struct __darwin_ymm_reg __fpu_zmmh6;
 struct __darwin_ymm_reg __fpu_zmmh7;
 struct __darwin_ymm_reg __fpu_zmmh8;
 struct __darwin_ymm_reg __fpu_zmmh9;
 struct __darwin_ymm_reg __fpu_zmmh10;
 struct __darwin_ymm_reg __fpu_zmmh11;
 struct __darwin_ymm_reg __fpu_zmmh12;
 struct __darwin_ymm_reg __fpu_zmmh13;
 struct __darwin_ymm_reg __fpu_zmmh14;
 struct __darwin_ymm_reg __fpu_zmmh15;
 struct __darwin_zmm_reg __fpu_zmm16;
 struct __darwin_zmm_reg __fpu_zmm17;
 struct __darwin_zmm_reg __fpu_zmm18;
 struct __darwin_zmm_reg __fpu_zmm19;
 struct __darwin_zmm_reg __fpu_zmm20;
 struct __darwin_zmm_reg __fpu_zmm21;
 struct __darwin_zmm_reg __fpu_zmm22;
 struct __darwin_zmm_reg __fpu_zmm23;
 struct __darwin_zmm_reg __fpu_zmm24;
 struct __darwin_zmm_reg __fpu_zmm25;
 struct __darwin_zmm_reg __fpu_zmm26;
 struct __darwin_zmm_reg __fpu_zmm27;
 struct __darwin_zmm_reg __fpu_zmm28;
 struct __darwin_zmm_reg __fpu_zmm29;
 struct __darwin_zmm_reg __fpu_zmm30;
 struct __darwin_zmm_reg __fpu_zmm31;
};
# 1172 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_x86_exception_state64
{
    __uint16_t __trapno;
    __uint16_t __cpu;
    __uint32_t __err;
    __uint64_t __faultvaddr;
};
# 1192 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_x86_debug_state64
{
 __uint64_t __dr0;
 __uint64_t __dr1;
 __uint64_t __dr2;
 __uint64_t __dr3;
 __uint64_t __dr4;
 __uint64_t __dr5;
 __uint64_t __dr6;
 __uint64_t __dr7;
};
# 1220 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h" 3 4
struct __darwin_x86_cpmu_state64
{
 __uint64_t __ctrs[16];
};
# 34 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/_structs.h" 2 3 4
# 35 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h" 2 3 4




struct __darwin_mcontext32
{
 struct __darwin_i386_exception_state __es;
 struct __darwin_i386_thread_state __ss;
 struct __darwin_i386_float_state __fs;
};


struct __darwin_mcontext_avx32
{
 struct __darwin_i386_exception_state __es;
 struct __darwin_i386_thread_state __ss;
 struct __darwin_i386_avx_state __fs;
};



struct __darwin_mcontext_avx512_32
{
 struct __darwin_i386_exception_state __es;
 struct __darwin_i386_thread_state __ss;
 struct __darwin_i386_avx512_state __fs;
};
# 97 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h" 3 4
struct __darwin_mcontext64
{
 struct __darwin_x86_exception_state64 __es;
 struct __darwin_x86_thread_state64 __ss;
 struct __darwin_x86_float_state64 __fs;
};


struct __darwin_mcontext64_full
{
 struct __darwin_x86_exception_state64 __es;
 struct __darwin_x86_thread_full_state64 __ss;
 struct __darwin_x86_float_state64 __fs;
};


struct __darwin_mcontext_avx64
{
 struct __darwin_x86_exception_state64 __es;
 struct __darwin_x86_thread_state64 __ss;
 struct __darwin_x86_avx_state64 __fs;
};


struct __darwin_mcontext_avx64_full
{
 struct __darwin_x86_exception_state64 __es;
 struct __darwin_x86_thread_full_state64 __ss;
 struct __darwin_x86_avx_state64 __fs;
};



struct __darwin_mcontext_avx512_64
{
 struct __darwin_x86_exception_state64 __es;
 struct __darwin_x86_thread_state64 __ss;
 struct __darwin_x86_avx512_state64 __fs;
};


struct __darwin_mcontext_avx512_64_full
{
 struct __darwin_x86_exception_state64 __es;
 struct __darwin_x86_thread_full_state64 __ss;
 struct __darwin_x86_avx512_state64 __fs;
};
# 204 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h" 3 4
typedef struct __darwin_mcontext64 *mcontext_t;
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h" 2 3 4
# 147 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 2 3 4



# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigaltstack.h" 1 3 4
# 42 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigaltstack.h" 3 4
struct __darwin_sigaltstack
{
 void *ss_sp;
 __darwin_size_t ss_size;
 int ss_flags;
};
typedef struct __darwin_sigaltstack stack_t;
# 151 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext.h" 1 3 4
# 39 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h" 1 3 4
# 40 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext.h" 2 3 4


struct __darwin_ucontext
{
 int uc_onstack;
 __darwin_sigset_t uc_sigmask;
 struct __darwin_sigaltstack uc_stack;
 struct __darwin_ucontext *uc_link;
 __darwin_size_t uc_mcsize;
 struct __darwin_mcontext64 *uc_mcontext;



};


typedef struct __darwin_ucontext ucontext_t;
# 152 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 2 3 4






union sigval {

 int sival_int;
 void *sival_ptr;
};





struct sigevent {
 int sigev_notify;
 int sigev_signo;
 union sigval sigev_value;
 void (*sigev_notify_function)(union sigval);
 pthread_attr_t *sigev_notify_attributes;
};


typedef struct __siginfo {
 int si_signo;
 int si_errno;
 int si_code;
 pid_t si_pid;
 uid_t si_uid;
 int si_status;
 void *si_addr;
 union sigval si_value;
 long si_band;
 unsigned long __pad[7];
} siginfo_t;
# 269 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 3 4
union __sigaction_u {
 void (*__sa_handler)(int);
 void (*__sa_sigaction)(int, struct __siginfo *,
     void *);
};


struct __sigaction {
 union __sigaction_u __sigaction_u;
 void (*sa_tramp)(void *, int, int, siginfo_t *, void *);
 sigset_t sa_mask;
 int sa_flags;
};




struct sigaction {
 union __sigaction_u __sigaction_u;
 sigset_t sa_mask;
 int sa_flags;
};
# 331 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 3 4
typedef void (*sig_t)(int);
# 348 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 3 4
struct sigvec {
 void (*sv_handler)(int);
 int sv_mask;
 int sv_flags;
};
# 367 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 3 4
struct sigstack {
 char *ss_sp;
 int ss_onstack;
};
# 389 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h" 3 4
extern "C" {
    void(*signal(int, void (*)(int)))(int);
}
# 110 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 1 3 4
# 72 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdint.h" 1 3 4
# 101 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdint.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3 4
# 102 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdint.h" 2 3 4
# 105 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdint.h" 3
# 118 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdint.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stdint.h" 1 3
# 47 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stdint.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 1 3 4
# 23 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint8_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint8_t.h" 3 4
typedef unsigned char uint8_t;
# 24 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint16_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint16_t.h" 3 4
typedef unsigned short uint16_t;
# 25 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 2 3 4




typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;



typedef int8_t int_fast8_t;
typedef int16_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef int64_t int_fast64_t;
typedef uint8_t uint_fast8_t;
typedef uint16_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef uint64_t uint_fast64_t;
# 58 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_intmax_t.h" 1 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_intmax_t.h" 3 4
typedef long int intmax_t;
# 59 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uintmax_t.h" 1 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uintmax_t.h" 3 4
typedef long unsigned int uintmax_t;
# 60 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 2 3 4
# 48 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stdint.h" 2 3
# 119 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdint.h" 2 3
# 73 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 2 3 4
# 89 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
typedef __uint64_t rlim_t;
# 152 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
struct rusage {
 struct timeval ru_utime;
 struct timeval ru_stime;
# 163 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
 long ru_maxrss;

 long ru_ixrss;
 long ru_idrss;
 long ru_isrss;
 long ru_minflt;
 long ru_majflt;
 long ru_nswap;
 long ru_inblock;
 long ru_oublock;
 long ru_msgsnd;
 long ru_msgrcv;
 long ru_nsignals;
 long ru_nvcsw;
 long ru_nivcsw;


};
# 193 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
typedef void *rusage_info_t;

struct rusage_info_v0 {
 uint8_t ri_uuid[16];
 uint64_t ri_user_time;
 uint64_t ri_system_time;
 uint64_t ri_pkg_idle_wkups;
 uint64_t ri_interrupt_wkups;
 uint64_t ri_pageins;
 uint64_t ri_wired_size;
 uint64_t ri_resident_size;
 uint64_t ri_phys_footprint;
 uint64_t ri_proc_start_abstime;
 uint64_t ri_proc_exit_abstime;
};

struct rusage_info_v1 {
 uint8_t ri_uuid[16];
 uint64_t ri_user_time;
 uint64_t ri_system_time;
 uint64_t ri_pkg_idle_wkups;
 uint64_t ri_interrupt_wkups;
 uint64_t ri_pageins;
 uint64_t ri_wired_size;
 uint64_t ri_resident_size;
 uint64_t ri_phys_footprint;
 uint64_t ri_proc_start_abstime;
 uint64_t ri_proc_exit_abstime;
 uint64_t ri_child_user_time;
 uint64_t ri_child_system_time;
 uint64_t ri_child_pkg_idle_wkups;
 uint64_t ri_child_interrupt_wkups;
 uint64_t ri_child_pageins;
 uint64_t ri_child_elapsed_abstime;
};

struct rusage_info_v2 {
 uint8_t ri_uuid[16];
 uint64_t ri_user_time;
 uint64_t ri_system_time;
 uint64_t ri_pkg_idle_wkups;
 uint64_t ri_interrupt_wkups;
 uint64_t ri_pageins;
 uint64_t ri_wired_size;
 uint64_t ri_resident_size;
 uint64_t ri_phys_footprint;
 uint64_t ri_proc_start_abstime;
 uint64_t ri_proc_exit_abstime;
 uint64_t ri_child_user_time;
 uint64_t ri_child_system_time;
 uint64_t ri_child_pkg_idle_wkups;
 uint64_t ri_child_interrupt_wkups;
 uint64_t ri_child_pageins;
 uint64_t ri_child_elapsed_abstime;
 uint64_t ri_diskio_bytesread;
 uint64_t ri_diskio_byteswritten;
};

struct rusage_info_v3 {
 uint8_t ri_uuid[16];
 uint64_t ri_user_time;
 uint64_t ri_system_time;
 uint64_t ri_pkg_idle_wkups;
 uint64_t ri_interrupt_wkups;
 uint64_t ri_pageins;
 uint64_t ri_wired_size;
 uint64_t ri_resident_size;
 uint64_t ri_phys_footprint;
 uint64_t ri_proc_start_abstime;
 uint64_t ri_proc_exit_abstime;
 uint64_t ri_child_user_time;
 uint64_t ri_child_system_time;
 uint64_t ri_child_pkg_idle_wkups;
 uint64_t ri_child_interrupt_wkups;
 uint64_t ri_child_pageins;
 uint64_t ri_child_elapsed_abstime;
 uint64_t ri_diskio_bytesread;
 uint64_t ri_diskio_byteswritten;
 uint64_t ri_cpu_time_qos_default;
 uint64_t ri_cpu_time_qos_maintenance;
 uint64_t ri_cpu_time_qos_background;
 uint64_t ri_cpu_time_qos_utility;
 uint64_t ri_cpu_time_qos_legacy;
 uint64_t ri_cpu_time_qos_user_initiated;
 uint64_t ri_cpu_time_qos_user_interactive;
 uint64_t ri_billed_system_time;
 uint64_t ri_serviced_system_time;
};

struct rusage_info_v4 {
 uint8_t ri_uuid[16];
 uint64_t ri_user_time;
 uint64_t ri_system_time;
 uint64_t ri_pkg_idle_wkups;
 uint64_t ri_interrupt_wkups;
 uint64_t ri_pageins;
 uint64_t ri_wired_size;
 uint64_t ri_resident_size;
 uint64_t ri_phys_footprint;
 uint64_t ri_proc_start_abstime;
 uint64_t ri_proc_exit_abstime;
 uint64_t ri_child_user_time;
 uint64_t ri_child_system_time;
 uint64_t ri_child_pkg_idle_wkups;
 uint64_t ri_child_interrupt_wkups;
 uint64_t ri_child_pageins;
 uint64_t ri_child_elapsed_abstime;
 uint64_t ri_diskio_bytesread;
 uint64_t ri_diskio_byteswritten;
 uint64_t ri_cpu_time_qos_default;
 uint64_t ri_cpu_time_qos_maintenance;
 uint64_t ri_cpu_time_qos_background;
 uint64_t ri_cpu_time_qos_utility;
 uint64_t ri_cpu_time_qos_legacy;
 uint64_t ri_cpu_time_qos_user_initiated;
 uint64_t ri_cpu_time_qos_user_interactive;
 uint64_t ri_billed_system_time;
 uint64_t ri_serviced_system_time;
 uint64_t ri_logical_writes;
 uint64_t ri_lifetime_max_phys_footprint;
 uint64_t ri_instructions;
 uint64_t ri_cycles;
 uint64_t ri_billed_energy;
 uint64_t ri_serviced_energy;
 uint64_t ri_interval_max_phys_footprint;
 uint64_t ri_runnable_time;
};

typedef struct rusage_info_v4 rusage_info_current;
# 365 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
struct rlimit {
 rlim_t rlim_cur;
 rlim_t rlim_max;
};
# 400 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
struct proc_rlimit_control_wakeupmon {
 uint32_t wm_flags;
 int32_t wm_rate;
};
# 444 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h" 3 4
extern "C" {
int getpriority(int, id_t);

int getiopolicy_np(int, int) __attribute__((availability(macosx,introduced=10.5)));

int getrlimit(int, struct rlimit *) __asm("_" "getrlimit" );
int getrusage(int, struct rusage *);
int setpriority(int, id_t, int);

int setiopolicy_np(int, int, int) __attribute__((availability(macosx,introduced=10.5)));

int setrlimit(int, const struct rlimit *) __asm("_" "setrlimit" );
}
# 111 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h" 2 3 4
# 194 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h" 3 4
union wait {
 int w_status;



 struct {

  unsigned int w_Termsig:7,
      w_Coredump:1,
      w_Retcode:8,
      w_Filler:16;







 } w_T;





 struct {

  unsigned int w_Stopval:8,
      w_Stopsig:8,
      w_Filler:16;






 } w_S;
};
# 247 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h" 3 4
extern "C" {
pid_t wait(int *) __asm("_" "wait" );
pid_t waitpid(pid_t, int *, int) __asm("_" "waitpid" );

int waitid(idtype_t, id_t, siginfo_t *, int) __asm("_" "waitid" );


pid_t wait3(int *, int, struct rusage *);
pid_t wait4(pid_t, int *, int, struct rusage *);

}
# 67 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/alloca.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/alloca.h" 3 4
extern "C" {
void *alloca(size_t);
}
# 69 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 2 3 4








# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ct_rune_t.h" 1 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ct_rune_t.h" 3 4
typedef __darwin_ct_rune_t ct_rune_t;
# 78 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rune_t.h" 1 3 4
# 31 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rune_t.h" 3 4
typedef __darwin_rune_t rune_t;
# 79 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 2 3 4


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wchar_t.h" 1 3 4
# 82 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 2 3 4

typedef struct {
 int quot;
 int rem;
} div_t;

typedef struct {
 long quot;
 long rem;
} ldiv_t;


typedef struct {
 long long quot;
 long long rem;
} lldiv_t;
# 118 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 3 4
extern int __mb_cur_max;
# 128 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/_malloc.h" 1 3 4
# 38 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/_malloc.h" 3 4
extern "C" {

void *malloc(size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(1)));
void *calloc(size_t __count, size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(1,2)));
void free(void *);
void *realloc(void *__ptr, size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(2)));

void *valloc(size_t) __attribute__((alloc_size(1)));






int posix_memalign(void **__memptr, size_t __alignment, size_t __size) __attribute__((availability(macosx,introduced=10.6)));

}
# 129 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 2 3 4

extern "C" {
void abort(void) __attribute__((__cold__)) __attribute__((__noreturn__));
int abs(int) __attribute__((__const__));
int atexit(void (* _Nonnull)(void));
double atof(const char *);
int atoi(const char *);
long atol(const char *);

long long
  atoll(const char *);

void *bsearch(const void *__key, const void *__base, size_t __nel,
     size_t __width, int (* _Nonnull __compar)(const void *, const void *));

div_t div(int, int) __attribute__((__const__));
void exit(int) __attribute__((__noreturn__));

char *getenv(const char *);
long labs(long) __attribute__((__const__));
ldiv_t ldiv(long, long) __attribute__((__const__));

long long
  llabs(long long);
lldiv_t lldiv(long long, long long);


int mblen(const char *__s, size_t __n);
size_t mbstowcs(wchar_t * , const char * , size_t);
int mbtowc(wchar_t * , const char * , size_t);

void qsort(void *__base, size_t __nel, size_t __width,
     int (* _Nonnull __compar)(const void *, const void *));
int rand(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));

void srand(unsigned) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
double strtod(const char *, char **) __asm("_" "strtod" );
float strtof(const char *, char **) __asm("_" "strtof" );
long strtol(const char *__str, char **__endptr, int __base);
long double
  strtold(const char *, char **);

long long
  strtoll(const char *__str, char **__endptr, int __base);

unsigned long
  strtoul(const char *__str, char **__endptr, int __base);

unsigned long long
  strtoull(const char *__str, char **__endptr, int __base);
# 187 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 3 4
__attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead.")))
__attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable)))
__attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
int system(const char *) __asm("_" "system" );



size_t wcstombs(char * , const wchar_t * , size_t);
int wctomb(char *, wchar_t);


void _Exit(int) __attribute__((__noreturn__));
long a64l(const char *);
double drand48(void);
char *ecvt(double, int, int *, int *);
double erand48(unsigned short[3]);
char *fcvt(double, int, int *, int *);
char *gcvt(double, int, char *);
int getsubopt(char **, char * const *, char **);
int grantpt(int);

char *initstate(unsigned, char *, size_t);



long jrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
char *l64a(long);
void lcong48(unsigned short[7]);
long lrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
char *mktemp(char *);
int mkstemp(char *);
long mrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
long nrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
int posix_openpt(int);
char *ptsname(int);


int ptsname_r(int fildes, char *buffer, size_t buflen) __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) __attribute__((availability(tvos,introduced=11.3))) __attribute__((availability(watchos,introduced=4.3)));


int putenv(char *) __asm("_" "putenv" );
long random(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
int rand_r(unsigned *) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));

char *realpath(const char * , char * ) __asm("_" "realpath" "$DARWIN_EXTSN");



unsigned short
 *seed48(unsigned short[3]);
int setenv(const char * __name, const char * __value, int __overwrite) __asm("_" "setenv" );

void setkey(const char *) __asm("_" "setkey" );



char *setstate(const char *);
void srand48(long);

void srandom(unsigned);



int unlockpt(int);

int unsetenv(const char *) __asm("_" "unsetenv" );
# 264 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 3 4
uint32_t arc4random(void);
void arc4random_addrandom(unsigned char * , int )
    __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.12,message="use arc4random_stir")))
    __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=10.0,message="use arc4random_stir")))
    __attribute__((availability(tvos,introduced=2.0))) __attribute__((availability(tvos,deprecated=10.0,message="use arc4random_stir")))
    __attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=3.0,message="use arc4random_stir")));
void arc4random_buf(void * __buf, size_t __nbytes) __attribute__((availability(macosx,introduced=10.7)));
void arc4random_stir(void);
uint32_t
  arc4random_uniform(uint32_t __upper_bound) __attribute__((availability(macosx,introduced=10.7)));

int atexit_b(void (^ _Nonnull)(void)) __attribute__((availability(macosx,introduced=10.6)));
void *bsearch_b(const void *__key, const void *__base, size_t __nel,
     size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(macosx,introduced=10.6)));



char *cgetcap(char *, const char *, int);
int cgetclose(void);
int cgetent(char **, char **, const char *);
int cgetfirst(char **, char **);
int cgetmatch(const char *, const char *);
int cgetnext(char **, char **);
int cgetnum(char *, const char *, long *);
int cgetset(const char *);
int cgetstr(char *, const char *, char **);
int cgetustr(char *, const char *, char **);

int daemon(int, int) __asm("_" "daemon" "$1050") __attribute__((availability(macosx,introduced=10.0,deprecated=10.5,message="Use posix_spawn APIs instead."))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
char *devname(dev_t, mode_t);
char *devname_r(dev_t, mode_t, char *buf, int len);
char *getbsize(int *, long *);
int getloadavg(double [], int);
const char
 *getprogname(void);
void setprogname(const char *);
# 309 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h" 3 4
int heapsort(void *__base, size_t __nel, size_t __width,
     int (* _Nonnull __compar)(const void *, const void *));

int heapsort_b(void *__base, size_t __nel, size_t __width,
     int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
     __attribute__((availability(macosx,introduced=10.6)));

int mergesort(void *__base, size_t __nel, size_t __width,
     int (* _Nonnull __compar)(const void *, const void *));

int mergesort_b(void *__base, size_t __nel, size_t __width,
     int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
     __attribute__((availability(macosx,introduced=10.6)));

void psort(void *__base, size_t __nel, size_t __width,
     int (* _Nonnull __compar)(const void *, const void *))
     __attribute__((availability(macosx,introduced=10.6)));

void psort_b(void *__base, size_t __nel, size_t __width,
     int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
     __attribute__((availability(macosx,introduced=10.6)));

void psort_r(void *__base, size_t __nel, size_t __width, void *,
     int (* _Nonnull __compar)(void *, const void *, const void *))
     __attribute__((availability(macosx,introduced=10.6)));

void qsort_b(void *__base, size_t __nel, size_t __width,
     int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
     __attribute__((availability(macosx,introduced=10.6)));

void qsort_r(void *__base, size_t __nel, size_t __width, void *,
     int (* _Nonnull __compar)(void *, const void *, const void *));
int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table,
     unsigned __endbyte);
int rpmatch(const char *)
 __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table,
     unsigned __endbyte);
void sranddev(void);
void srandomdev(void);
void *reallocf(void *__ptr, size_t __size) __attribute__((alloc_size(2)));

long long
  strtoq(const char *__str, char **__endptr, int __base);
unsigned long long
  strtouq(const char *__str, char **__endptr, int __base);

extern char *suboptarg;







}
# 94 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h" 2 3



extern "C++" {
# 110 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h" 3
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) long abs( long __x) noexcept {return labs(__x);}

inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) long long abs(long long __x) noexcept {return llabs(__x);}


inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) ldiv_t div( long __x, long __y) noexcept {return ldiv(__x, __y);}

inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) lldiv_t div(long long __x, long long __y) noexcept {return lldiv(__x, __y);}



}
# 40 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stddef.h" 1 3
# 39 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stddef.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 40 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stddef.h" 2 3
# 43 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stddef.h" 3


# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stddef.h" 1 3
# 35 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stddef.h" 3
typedef long int ptrdiff_t;
# 102 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stddef.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/__stddef_max_align_t.h" 1 3
# 16 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/__stddef_max_align_t.h" 3
typedef long double max_align_t;
# 103 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stddef.h" 2 3
# 46 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stddef.h" 2 3



extern "C++" {

# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__nullptr" 1 3
# 13 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__nullptr" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 14 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__nullptr" 2 3
# 17 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__nullptr" 3
# 54 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__nullptr" 3
namespace std
{
    typedef decltype(nullptr) nullptr_t;
}
# 51 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stddef.h" 2 3
using std::nullptr_t;
}
# 41 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctype.h" 1 3
# 32 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctype.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 33 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctype.h" 2 3
# 36 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctype.h" 3


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ctype.h" 1 3 4
# 69 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ctype.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h" 1 3 4
# 70 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h" 1 3 4
# 49 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wchar_t.h" 1 3 4
# 50 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wint_t.h" 1 3 4
# 32 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wint_t.h" 3 4
typedef __darwin_wint_t wint_t;
# 51 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h" 2 3 4
# 60 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h" 3 4
typedef struct {
 __darwin_rune_t __min;
 __darwin_rune_t __max;
 __darwin_rune_t __map;
 __uint32_t *__types;
} _RuneEntry;

typedef struct {
 int __nranges;
 _RuneEntry *__ranges;
} _RuneRange;

typedef struct {
 char __name[14];
 __uint32_t __mask;
} _RuneCharClass;

typedef struct {
 char __magic[8];
 char __encoding[32];

 __darwin_rune_t (*__sgetrune)(const char *, __darwin_size_t, char const **);
 int (*__sputrune)(__darwin_rune_t, char *, __darwin_size_t, char **);
 __darwin_rune_t __invalid_rune;

 __uint32_t __runetype[(1 <<8 )];
 __darwin_rune_t __maplower[(1 <<8 )];
 __darwin_rune_t __mapupper[(1 <<8 )];






 _RuneRange __runetype_ext;
 _RuneRange __maplower_ext;
 _RuneRange __mapupper_ext;

 void *__variable;
 int __variable_len;




 int __ncharclasses;
 _RuneCharClass *__charclasses;
} _RuneLocale;



extern "C" {
extern _RuneLocale _DefaultRuneLocale;
extern _RuneLocale *_CurrentRuneLocale;
}
# 71 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h" 2 3 4
# 128 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h" 3 4
extern "C" {
unsigned long ___runetype(__darwin_ct_rune_t);
__darwin_ct_rune_t ___tolower(__darwin_ct_rune_t);
__darwin_ct_rune_t ___toupper(__darwin_ct_rune_t);
}

inline int
isascii(int _c)
{
 return ((_c & ~0x7F) == 0);
}
# 147 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h" 3 4
extern "C" {
int __maskrune(__darwin_ct_rune_t, unsigned long);
}


inline int
__istype(__darwin_ct_rune_t _c, unsigned long _f)
{



 return (isascii(_c) ? !!(_DefaultRuneLocale.__runetype[_c] & _f)
  : !!__maskrune(_c, _f));

}

inline __darwin_ct_rune_t
__isctype(__darwin_ct_rune_t _c, unsigned long _f)
{



 return (_c < 0 || _c >= (1 <<8 )) ? 0 :
  !!(_DefaultRuneLocale.__runetype[_c] & _f);

}
# 187 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h" 3 4
extern "C" {
__darwin_ct_rune_t __toupper(__darwin_ct_rune_t);
__darwin_ct_rune_t __tolower(__darwin_ct_rune_t);
}


inline int
__wcwidth(__darwin_ct_rune_t _c)
{
 unsigned int _x;

 if (_c == 0)
  return (0);
 _x = (unsigned int)__maskrune(_c, 0xe0000000L|0x00040000L);
 if ((_x & 0xe0000000L) != 0)
  return ((_x & 0xe0000000L) >> 30);
 return ((_x & 0x00040000L) != 0 ? 1 : -1);
}






inline int
isalnum(int _c)
{
 return (__istype(_c, 0x00000100L|0x00000400L));
}

inline int
isalpha(int _c)
{
 return (__istype(_c, 0x00000100L));
}

inline int
isblank(int _c)
{
 return (__istype(_c, 0x00020000L));
}

inline int
iscntrl(int _c)
{
 return (__istype(_c, 0x00000200L));
}


inline int
isdigit(int _c)
{
 return (__isctype(_c, 0x00000400L));
}

inline int
isgraph(int _c)
{
 return (__istype(_c, 0x00000800L));
}

inline int
islower(int _c)
{
 return (__istype(_c, 0x00001000L));
}

inline int
isprint(int _c)
{
 return (__istype(_c, 0x00040000L));
}

inline int
ispunct(int _c)
{
 return (__istype(_c, 0x00002000L));
}

inline int
isspace(int _c)
{
 return (__istype(_c, 0x00004000L));
}

inline int
isupper(int _c)
{
 return (__istype(_c, 0x00008000L));
}


inline int
isxdigit(int _c)
{
 return (__isctype(_c, 0x00010000L));
}

inline int
toascii(int _c)
{
 return (_c & 0x7F);
}

inline int
tolower(int _c)
{
        return (__tolower(_c));
}

inline int
toupper(int _c)
{
        return (__toupper(_c));
}


inline int
digittoint(int _c)
{
 return (__maskrune(_c, 0x0F));
}

inline int
ishexnumber(int _c)
{
 return (__istype(_c, 0x00010000L));
}

inline int
isideogram(int _c)
{
 return (__istype(_c, 0x00080000L));
}

inline int
isnumber(int _c)
{
 return (__istype(_c, 0x00000400L));
}

inline int
isphonogram(int _c)
{
 return (__istype(_c, 0x00200000L));
}

inline int
isrune(int _c)
{
 return (__istype(_c, 0xFFFFFFF0L));
}

inline int
isspecial(int _c)
{
 return (__istype(_c, 0x00100000L));
}
# 70 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ctype.h" 2 3 4
# 39 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctype.h" 2 3
# 42 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/signal.h" 1 3 4
# 69 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/signal.h" 3 4
extern const char *const sys_signame[32];
extern const char *const sys_siglist[32];


extern "C" {
int raise(int);
}


extern "C" {
void (* _Nullable bsd_signal(int, void (* _Nullable)(int)))(int);
int kill(pid_t, int) __asm("_" "kill" );
int killpg(pid_t, int) __asm("_" "killpg" );
int pthread_kill(pthread_t, int);
int pthread_sigmask(int, const sigset_t *, sigset_t *) __asm("_" "pthread_sigmask" );
int sigaction(int, const struct sigaction * ,
     struct sigaction * );
int sigaddset(sigset_t *, int);
int sigaltstack(const stack_t * , stack_t * ) __asm("_" "sigaltstack" ) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int sigdelset(sigset_t *, int);
int sigemptyset(sigset_t *);
int sigfillset(sigset_t *);
int sighold(int);
int sigignore(int);
int siginterrupt(int, int);
int sigismember(const sigset_t *, int);
int sigpause(int) __asm("_" "sigpause" );
int sigpending(sigset_t *);
int sigprocmask(int, const sigset_t * , sigset_t * );
int sigrelse(int);
void (* _Nullable sigset(int, void (* _Nullable)(int)))(int);
int sigsuspend(const sigset_t *) __asm("_" "sigsuspend" );
int sigwait(const sigset_t * , int * ) __asm("_" "sigwait" );

void psignal(unsigned int, const char *);
int sigblock(int);
int sigsetmask(int);
int sigvec(int, struct sigvec *, struct sigvec *);

}




inline __attribute__ ((__always_inline__)) int
__sigbits(int __signo)
{
    return __signo > 32 ? 0 : (1 << (__signo - 1));
}
# 44 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/assert.h" 1 3 4
# 44 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/assert.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h" 1 3 4
# 45 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/assert.h" 2 3 4
# 75 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/assert.h" 3 4
extern "C" {
void __assert_rtn(const char *, const char *, int, const char *) __attribute__((__noreturn__)) __attribute__((__cold__)) __attribute__((__disable_tail_calls__));



}
# 46 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fcntl.h" 1 3 4
# 47 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2


# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stdarg.h" 1 3
# 14 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stdarg.h" 3
typedef __builtin_va_list va_list;
# 32 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stdarg.h" 3
typedef __builtin_va_list __gnuc_va_list;
# 50 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h" 1 3
# 54 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 55 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h" 2 3
# 58 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h" 3


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h" 1 3 4
# 69 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h" 3 4
extern "C" {
void *memchr(const void *__s, int __c, size_t __n);
int memcmp(const void *__s1, const void *__s2, size_t __n);
void *memcpy(void *__dst, const void *__src, size_t __n);
void *memmove(void *__dst, const void *__src, size_t __len);
void *memset(void *__b, int __c, size_t __len);
char *strcat(char *__s1, const char *__s2);
char *strchr(const char *__s, int __c);
int strcmp(const char *__s1, const char *__s2);
int strcoll(const char *__s1, const char *__s2);
char *strcpy(char *__dst, const char *__src);
size_t strcspn(const char *__s, const char *__charset);
char *strerror(int __errnum) __asm("_" "strerror" );
size_t strlen(const char *__s);
char *strncat(char *__s1, const char *__s2, size_t __n);
int strncmp(const char *__s1, const char *__s2, size_t __n);
char *strncpy(char *__dst, const char *__src, size_t __n);
char *strpbrk(const char *__s, const char *__charset);
char *strrchr(const char *__s, int __c);
size_t strspn(const char *__s, const char *__charset);
char *strstr(const char *__big, const char *__little);
char *strtok(char *__str, const char *__sep);
size_t strxfrm(char *__s1, const char *__s2, size_t __n);
}
# 103 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h" 3 4
extern "C" {
char *strtok_r(char *__str, const char *__sep, char **__lasts);
}
# 115 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h" 3 4
extern "C" {
int strerror_r(int __errnum, char *__strerrbuf, size_t __buflen);
char *strdup(const char *__s1);
void *memccpy(void *__dst, const void *__src, int __c, size_t __n);
}
# 129 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h" 3 4
extern "C" {
char *stpcpy(char *__dst, const char *__src);
char *stpncpy(char *__dst, const char *__src, size_t __n) __attribute__((availability(macosx,introduced=10.7)));
char *strndup(const char *__s1, size_t __n) __attribute__((availability(macosx,introduced=10.7)));
size_t strnlen(const char *__s1, size_t __n) __attribute__((availability(macosx,introduced=10.7)));
char *strsignal(int __sig);
}
# 144 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h" 3 4
extern "C" {
errno_t memset_s(void *__s, rsize_t __smax, int __c, rsize_t __n) __attribute__((availability(macosx,introduced=10.9)));
}







extern "C" {
void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __attribute__((availability(macosx,introduced=10.7)));
void memset_pattern4(void *__b, const void *__pattern4, size_t __len) __attribute__((availability(macosx,introduced=10.5)));
void memset_pattern8(void *__b, const void *__pattern8, size_t __len) __attribute__((availability(macosx,introduced=10.5)));
void memset_pattern16(void *__b, const void *__pattern16, size_t __len) __attribute__((availability(macosx,introduced=10.5)));

char *strcasestr(const char *__big, const char *__little);
char *strnstr(const char *__big, const char *__little, size_t __len);
size_t strlcat(char *__dst, const char *__source, size_t __size);
size_t strlcpy(char *__dst, const char *__source, size_t __size);
void strmode(int __mode, char *__bp);
char *strsep(char **__stringp, const char *__delim);


void swab(const void * , void * , ssize_t);

__attribute__((availability(macosx,introduced=10.12.1))) __attribute__((availability(ios,introduced=10.1)))
__attribute__((availability(tvos,introduced=10.0.1))) __attribute__((availability(watchos,introduced=3.1)))
int timingsafe_bcmp(const void *__b1, const void *__b2, size_t __len);
}







# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/strings.h" 1 3 4
# 67 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/strings.h" 3 4
extern "C" {


int bcmp(const void *, const void *, size_t) ;
void bcopy(const void *, void *, size_t) ;
void bzero(void *, size_t) ;
char *index(const char *, int) ;
char *rindex(const char *, int) ;


int ffs(int);
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, size_t);
}



extern "C" {
int ffsl(long) __attribute__((availability(macosx,introduced=10.5)));
int ffsll(long long) __attribute__((availability(macosx,introduced=10.9)));
int fls(int) __attribute__((availability(macosx,introduced=10.5)));
int flsl(long) __attribute__((availability(macosx,introduced=10.5)));
int flsll(long long) __attribute__((availability(macosx,introduced=10.9)));
}


# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h" 1 3 4
# 93 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/strings.h" 2 3 4
# 181 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h" 2 3 4
# 61 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h" 2 3
# 71 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h" 3
extern "C++" {
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage))
char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
      char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);}

inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage))
char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
const char* strpbrk(const char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
      char* strpbrk( char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);}

inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage))
char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
const char* strrchr(const char* __s, int __c) {return __libcpp_strrchr(__s, __c);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
      char* strrchr( char* __s, int __c) {return __libcpp_strrchr(__s, __c);}

inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage))
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
      void* memchr( void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}

inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage))
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
const char* strstr(const char* __s1, const char* __s2) {return __libcpp_strstr(__s1, __s2);}
inline __attribute__ ((__visibility__("hidden"))) __attribute__ ((internal_linkage)) __attribute__ ((__enable_if__(true, "")))
      char* strstr( char* __s1, const char* __s2) {return __libcpp_strstr(__s1, __s2);}
}
# 51 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/memory.h" 1 3 4
# 52 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/setjmp.h" 1 3
# 28 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/setjmp.h" 3
# 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config" 1 3
# 29 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/setjmp.h" 2 3
# 32 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/setjmp.h" 3


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/setjmp.h" 1 3 4
# 37 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/setjmp.h" 3 4
typedef int jmp_buf[((9 * 2) + 3 + 16)];
typedef int sigjmp_buf[((9 * 2) + 3 + 16) + 1];
# 86 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/setjmp.h" 3 4
extern "C" {
extern int setjmp(jmp_buf);
extern void longjmp(jmp_buf, int) __attribute__((__noreturn__));


int _setjmp(jmp_buf);
void _longjmp(jmp_buf, int) __attribute__((__noreturn__));
int sigsetjmp(sigjmp_buf, int);
void siglongjmp(sigjmp_buf, int) __attribute__((__noreturn__));



void longjmperror(void);

}
# 35 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/setjmp.h" 2 3
# 53 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h" 1 3 4
# 110 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h" 3 4
struct ostat {
 __uint16_t st_dev;
 ino_t st_ino;
 mode_t st_mode;
 nlink_t st_nlink;
 __uint16_t st_uid;
 __uint16_t st_gid;
 __uint16_t st_rdev;
 __int32_t st_size;
 struct timespec st_atimespec;
 struct timespec st_mtimespec;
 struct timespec st_ctimespec;
 __int32_t st_blksize;
 __int32_t st_blocks;
 __uint32_t st_flags;
 __uint32_t st_gen;
};
# 182 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h" 3 4
struct stat { dev_t st_dev; mode_t st_mode; nlink_t st_nlink; __darwin_ino64_t st_ino; uid_t st_uid; gid_t st_gid; dev_t st_rdev; struct timespec st_atimespec; struct timespec st_mtimespec; struct timespec st_ctimespec; struct timespec st_birthtimespec; off_t st_size; blkcnt_t st_blocks; blksize_t st_blksize; __uint32_t st_flags; __uint32_t st_gen; __int32_t st_lspare; __int64_t st_qspare[2]; };
# 221 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h" 3 4
struct stat64 { dev_t st_dev; mode_t st_mode; nlink_t st_nlink; __darwin_ino64_t st_ino; uid_t st_uid; gid_t st_gid; dev_t st_rdev; struct timespec st_atimespec; struct timespec st_mtimespec; struct timespec st_ctimespec; struct timespec st_birthtimespec; off_t st_size; blkcnt_t st_blocks; blksize_t st_blksize; __uint32_t st_flags; __uint32_t st_gen; __int32_t st_lspare; __int64_t st_qspare[2]; };
# 376 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h" 3 4
extern "C" {

int chmod(const char *, mode_t) __asm("_" "chmod" );
int fchmod(int, mode_t) __asm("_" "fchmod" );
int fstat(int, struct stat *) __asm("_" "fstat" "$INODE64");
int lstat(const char *, struct stat *) __asm("_" "lstat" "$INODE64");
int mkdir(const char *, mode_t);
int mkfifo(const char *, mode_t);
int stat(const char *, struct stat *) __asm("_" "stat" "$INODE64");
int mknod(const char *, mode_t, dev_t);
mode_t umask(mode_t);


int fchmodat(int, const char *, mode_t, int) __attribute__((availability(macosx,introduced=10.10)));
int fstatat(int, const char *, struct stat *, int) __asm("_" "fstatat" "$INODE64") __attribute__((availability(macosx,introduced=10.10)));
int mkdirat(int, const char *, mode_t) __attribute__((availability(macosx,introduced=10.10)));




int futimens(int __fd, const struct timespec __times[2]) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
int utimensat(int __fd, const char *__path, const struct timespec __times[2],
    int __flag) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));






int chflags(const char *, __uint32_t);
int chmodx_np(const char *, filesec_t);
int fchflags(int, __uint32_t);
int fchmodx_np(int, filesec_t);
int fstatx_np(int, struct stat *, filesec_t) __asm("_" "fstatx_np" "$INODE64");
int lchflags(const char *, __uint32_t) __attribute__((availability(macosx,introduced=10.5)));
int lchmod(const char *, mode_t) __attribute__((availability(macosx,introduced=10.5)));
int lstatx_np(const char *, struct stat *, filesec_t) __asm("_" "lstatx_np" "$INODE64");
int mkdirx_np(const char *, filesec_t);
int mkfifox_np(const char *, filesec_t);
int statx_np(const char *, struct stat *, filesec_t) __asm("_" "statx_np" "$INODE64");
int umaskx_np(filesec_t) __attribute__((availability(macosx,introduced=10.4,deprecated=10.6)));



int fstatx64_np(int, struct stat64 *, filesec_t) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6)));
int lstatx64_np(const char *, struct stat64 *, filesec_t) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6)));
int statx64_np(const char *, struct stat64 *, filesec_t) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6)));
int fstat64(int, struct stat64 *) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6)));
int lstat64(const char *, struct stat64 *) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6)));
int stat64(const char *, struct stat64 *) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6)));



}
# 55 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 67 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h"
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h" 1 3 4
# 72 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttycom.h" 1 3 4
# 72 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttycom.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioccom.h" 1 3 4
# 73 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttycom.h" 2 3 4
# 82 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttycom.h" 3 4
struct winsize {
 unsigned short ws_row;
 unsigned short ws_col;
 unsigned short ws_xpixel;
 unsigned short ws_ypixel;
};
# 73 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h" 2 3 4






struct ttysize {
 unsigned short ts_lines;
 unsigned short ts_cols;
 unsigned short ts_xxx;
 unsigned short ts_yyy;
};






# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/filio.h" 1 3 4
# 91 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h" 2 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sockio.h" 1 3 4
# 92 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h" 2 3 4




extern "C" {
int ioctl(int, unsigned long, ...);
}
# 68 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 1 3 4
# 301 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 3 4
struct in_addr {
 in_addr_t s_addr;
};
# 375 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 3 4
struct sockaddr_in {
 __uint8_t sin_len;
 sa_family_t sin_family;
 in_port_t sin_port;
 struct in_addr sin_addr;
 char sin_zero[8];
};
# 398 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 3 4
struct ip_opts {
 struct in_addr ip_dst;
 char ip_opts[40];
};
# 506 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 3 4
struct ip_mreq {
 struct in_addr imr_multiaddr;
 struct in_addr imr_interface;
};






struct ip_mreqn {
 struct in_addr imr_multiaddr;
 struct in_addr imr_address;
 int imr_ifindex;
};

#pragma pack(4)



struct ip_mreq_source {
 struct in_addr imr_multiaddr;
 struct in_addr imr_sourceaddr;
 struct in_addr imr_interface;
};





struct group_req {
 uint32_t gr_interface;
 struct sockaddr_storage gr_group;
};

struct group_source_req {
 uint32_t gsr_interface;
 struct sockaddr_storage gsr_group;
 struct sockaddr_storage gsr_source;
};
# 554 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 3 4
struct __msfilterreq {
 uint32_t msfr_ifindex;
 uint32_t msfr_fmode;
 uint32_t msfr_nsrcs;
 uint32_t __msfr_align;
 struct sockaddr_storage msfr_group;
 struct sockaddr_storage *msfr_srcs;
};



#pragma pack()
struct sockaddr;






int setipv4sourcefilter(int, struct in_addr, struct in_addr, uint32_t,
    uint32_t, struct in_addr *) __attribute__((availability(macosx,introduced=10.7)));
int getipv4sourcefilter(int, struct in_addr, struct in_addr, uint32_t *,
    uint32_t *, struct in_addr *) __attribute__((availability(macosx,introduced=10.7)));
int setsourcefilter(int, uint32_t, struct sockaddr *, socklen_t,
    uint32_t, uint32_t, struct sockaddr_storage *) __attribute__((availability(macosx,introduced=10.7)));
int getsourcefilter(int, uint32_t, struct sockaddr *, socklen_t,
    uint32_t *, uint32_t *, struct sockaddr_storage *) __attribute__((availability(macosx,introduced=10.7)));
# 617 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 3 4
struct in_pktinfo {
 unsigned int ipi_ifindex;
 struct in_addr ipi_spec_dst;
 struct in_addr ipi_addr;
};
# 659 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h" 1 3 4
# 151 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h" 3 4
typedef struct in6_addr {
 union {
  __uint8_t __u6_addr8[16];
  __uint16_t __u6_addr16[8];
  __uint32_t __u6_addr32[4];
 } __u6_addr;
} in6_addr_t;
# 169 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h" 3 4
struct sockaddr_in6 {
 __uint8_t sin6_len;
 sa_family_t sin6_family;
 in_port_t sin6_port;
 __uint32_t sin6_flowinfo;
 struct in6_addr sin6_addr;
 __uint32_t sin6_scope_id;
};
# 211 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h" 3 4
extern const struct in6_addr in6addr_any;
extern const struct in6_addr in6addr_loopback;

extern const struct in6_addr in6addr_nodelocal_allnodes;
extern const struct in6_addr in6addr_linklocal_allnodes;
extern const struct in6_addr in6addr_linklocal_allrouters;
extern const struct in6_addr in6addr_linklocal_allv2routers;
# 527 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h" 3 4
struct ipv6_mreq {
 struct in6_addr ipv6mr_multiaddr;
 unsigned int ipv6mr_interface;
};




struct in6_pktinfo {
 struct in6_addr ipi6_addr;
 unsigned int ipi6_ifindex;
};




struct ip6_mtuinfo {
 struct sockaddr_in6 ip6m_addr;
 uint32_t ip6m_mtu;
};
# 625 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h" 3 4
extern "C" {
struct cmsghdr;

extern int inet6_option_space(int);
extern int inet6_option_init(void *, struct cmsghdr **, int);
extern int inet6_option_append(struct cmsghdr *, const __uint8_t *, int, int);
extern __uint8_t *inet6_option_alloc(struct cmsghdr *, int, int, int);
extern int inet6_option_next(const struct cmsghdr *, __uint8_t **);
extern int inet6_option_find(const struct cmsghdr *, __uint8_t **, int);

extern size_t inet6_rthdr_space(int, int);
extern struct cmsghdr *inet6_rthdr_init(void *, int);
extern int inet6_rthdr_add(struct cmsghdr *, const struct in6_addr *,
    unsigned int);
extern int inet6_rthdr_lasthop(struct cmsghdr *, unsigned int);



extern int inet6_rthdr_segments(const struct cmsghdr *);
extern struct in6_addr *inet6_rthdr_getaddr(struct cmsghdr *, int);
extern int inet6_rthdr_getflags(const struct cmsghdr *, int);

extern int inet6_opt_init(void *, socklen_t);
extern int inet6_opt_append(void *, socklen_t, int, __uint8_t, socklen_t,
    __uint8_t, void **);
extern int inet6_opt_finish(void *, socklen_t, int);
extern int inet6_opt_set_val(void *, int, void *, socklen_t);

extern int inet6_opt_next(void *, socklen_t, int, __uint8_t *, socklen_t *,
    void **);
extern int inet6_opt_find(void *, socklen_t, int, __uint8_t, socklen_t *,
    void **);
extern int inet6_opt_get_val(void *, int, void *, socklen_t);
extern socklen_t inet6_rth_space(int, int);
extern void *inet6_rth_init(void *, socklen_t, int, int);
extern int inet6_rth_add(void *, const struct in6_addr *);
extern int inet6_rth_reverse(const void *, void *);
extern int inet6_rth_segments(const void *);
extern struct in6_addr *inet6_rth_getaddr(const void *, int);

}
# 660 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h" 2 3 4





extern "C" {
int bindresvport(int, struct sockaddr_in *);
struct sockaddr;
int bindresvport_sa(int, struct sockaddr *);
}
# 70 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/arpa/inet.h" 1 3 4
# 73 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/arpa/inet.h" 3 4
extern "C" {

in_addr_t inet_addr(const char *);
char *inet_ntoa(struct in_addr);
const char *inet_ntop(int, const void *, char *, socklen_t);
int inet_pton(int, const char *, void *);


int ascii2addr(int, const char *, void *);
char *addr2ascii(int, const void *, int, char *);
int inet_aton(const char *, struct in_addr *);
in_addr_t inet_lnaof(struct in_addr);
struct in_addr inet_makeaddr(in_addr_t, in_addr_t);
in_addr_t inet_netof(struct in_addr);
in_addr_t inet_network(const char *);
char *inet_net_ntop(int, const void *, int, char *, __darwin_size_t);
int inet_net_pton(int, const char *, void *, __darwin_size_t);
char *inet_neta(in_addr_t, char *, __darwin_size_t);
unsigned int inet_nsap_addr(const char *, unsigned char *, int);
char *inet_nsap_ntoa(int, const unsigned char *, char *);


}
# 71 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netdb.h" 1 3 4
# 101 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netdb.h" 3 4
extern int h_errno;
# 112 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netdb.h" 3 4
struct hostent {
 char *h_name;
 char **h_aliases;
 int h_addrtype;
 int h_length;
 char **h_addr_list;



};





struct netent {
 char *n_name;
 char **n_aliases;
 int n_addrtype;
 uint32_t n_net;
};

struct servent {
 char *s_name;
 char **s_aliases;
 int s_port;
 char *s_proto;
};

struct protoent {
 char *p_name;
 char **p_aliases;
 int p_proto;
};

struct addrinfo {
 int ai_flags;
 int ai_family;
 int ai_socktype;
 int ai_protocol;
 socklen_t ai_addrlen;
 char *ai_canonname;
 struct sockaddr *ai_addr;
 struct addrinfo *ai_next;
};


struct rpcent {
        char *r_name;
        char **r_aliases;
        int r_number;
};
# 262 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netdb.h" 3 4
extern "C" {

void endhostent(void);
void endnetent(void);
void endprotoent(void);
void endservent(void);

void freeaddrinfo(struct addrinfo *);
const char *gai_strerror(int);
int getaddrinfo(const char * , const char * ,
       const struct addrinfo * ,
       struct addrinfo ** );
struct hostent *gethostbyaddr(const void *, socklen_t, int);
struct hostent *gethostbyname(const char *);
struct hostent *gethostent(void);
int getnameinfo(const struct sockaddr * , socklen_t,
         char * , socklen_t, char * ,
         socklen_t, int);
struct netent *getnetbyaddr(uint32_t, int);
struct netent *getnetbyname(const char *);
struct netent *getnetent(void);
struct protoent *getprotobyname(const char *);
struct protoent *getprotobynumber(int);
struct protoent *getprotoent(void);
struct servent *getservbyname(const char *, const char *);
struct servent *getservbyport(int, const char *);
struct servent *getservent(void);
void sethostent(int);

void setnetent(int);
void setprotoent(int);
void setservent(int);


void freehostent(struct hostent *);
struct hostent *gethostbyname2(const char *, int);
struct hostent *getipnodebyaddr(const void *, size_t, int, int *);
struct hostent *getipnodebyname(const char *, int, int, int *);
struct rpcent *getrpcbyname(const char *name);

struct rpcent *getrpcbynumber(int number);



struct rpcent *getrpcent(void);
void setrpcent(int stayopen);
void endrpcent(void);
void herror(const char *);
const char *hstrerror(int);
int innetgr(const char *, const char *, const char *, const char *);
int getnetgrent(char **, char **, char **);
void endnetgrent(void);
void setnetgrent(const char *);


}
# 72 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 1 3 4
# 57 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread_impl.h" 1 3 4
# 33 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread_impl.h" 3 4
#pragma clang assume_nonnull begin
#pragma clang assume_nonnull end
# 58 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 2 3 4

# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/sched.h" 1 3 4
# 30 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/sched.h" 3 4
extern "C" {




struct sched_param { int sched_priority; char __opaque[4]; };


extern int sched_yield(void);
extern int sched_get_priority_min(int);
extern int sched_get_priority_max(int);
}
# 60 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 2 3 4
# 73 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 1 3 4
# 34 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h" 1 3 4
# 130 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h" 3 4
typedef enum : unsigned int { QOS_CLASS_USER_INTERACTIVE __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x21, QOS_CLASS_USER_INITIATED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x19, QOS_CLASS_DEFAULT __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x15, QOS_CLASS_UTILITY __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x11, QOS_CLASS_BACKGROUND __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x09, QOS_CLASS_UNSPECIFIED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x00, } qos_class_t;
# 159 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h" 3 4
extern "C" {
# 170 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
qos_class_t
qos_class_self(void);
# 192 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
qos_class_t
qos_class_main(void);

}
# 35 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 2 3 4




#pragma clang assume_nonnull begin

extern "C" {
# 81 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
int
pthread_attr_set_qos_class_np(pthread_attr_t *__attr,
  qos_class_t __qos_class, int __relative_priority);
# 112 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
int
pthread_attr_get_qos_class_np(pthread_attr_t * __attr,
  qos_class_t * _Nullable __qos_class,
  int * _Nullable __relative_priority);
# 153 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
int
pthread_set_qos_class_self_np(qos_class_t __qos_class,
  int __relative_priority);
# 184 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
int
pthread_get_qos_class_np(pthread_t __pthread,
  qos_class_t * _Nullable __qos_class,
  int * _Nullable __relative_priority);
# 211 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
typedef struct pthread_override_s* pthread_override_t;
# 263 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
pthread_override_t
pthread_override_qos_class_start_np(pthread_t __pthread,
  qos_class_t __qos_class, int __relative_priority);
# 291 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h" 3 4
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
int
pthread_override_qos_class_end_np(pthread_override_t __override);

}
#pragma clang assume_nonnull end
# 74 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 2 3 4



# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mach_port_t.h" 1 3 4
# 50 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mach_port_t.h" 3 4
typedef __darwin_mach_port_t mach_port_t;
# 78 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 2 3 4
# 106 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 3 4
#pragma clang assume_nonnull begin

extern "C" {
# 221 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread.h" 3 4
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
  void (* _Nullable)(void));

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_destroy(pthread_attr_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getdetachstate(const pthread_attr_t *, int *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getguardsize(const pthread_attr_t * , size_t * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getinheritsched(const pthread_attr_t * , int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getschedparam(const pthread_attr_t * ,
  struct sched_param * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getschedpolicy(const pthread_attr_t * , int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getscope(const pthread_attr_t * , int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getstack(const pthread_attr_t * ,
  void * _Nullable * _Nonnull , size_t * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getstackaddr(const pthread_attr_t * ,
  void * _Nullable * _Nonnull );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_getstacksize(const pthread_attr_t * , size_t * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_init(pthread_attr_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setdetachstate(pthread_attr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setguardsize(pthread_attr_t *, size_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setinheritsched(pthread_attr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setschedparam(pthread_attr_t * ,
  const struct sched_param * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setschedpolicy(pthread_attr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setscope(pthread_attr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setstack(pthread_attr_t *, void *, size_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setstackaddr(pthread_attr_t *, void *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_attr_setstacksize(pthread_attr_t *, size_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cancel(pthread_t) __asm("_" "pthread_cancel" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_broadcast(pthread_cond_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_destroy(pthread_cond_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_init(
  pthread_cond_t * ,
  const pthread_condattr_t * _Nullable )
  __asm("_" "pthread_cond_init" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_signal(pthread_cond_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_timedwait(
  pthread_cond_t * , pthread_mutex_t * ,
  const struct timespec * _Nullable )
  __asm("_" "pthread_cond_timedwait" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_wait(pthread_cond_t * ,
  pthread_mutex_t * ) __asm("_" "pthread_cond_wait" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_condattr_destroy(pthread_condattr_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_condattr_init(pthread_condattr_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_condattr_getpshared(const pthread_condattr_t * ,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_condattr_setpshared(pthread_condattr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))

int pthread_create(pthread_t _Nullable * _Nonnull ,
  const pthread_attr_t * _Nullable ,
  void * _Nullable (* _Nonnull)(void * _Nullable),
  void * _Nullable );






__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_detach(pthread_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_equal(pthread_t _Nullable, pthread_t _Nullable);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
void pthread_exit(void * _Nullable) __attribute__((__noreturn__));

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_getconcurrency(void);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_getschedparam(pthread_t , int * _Nullable ,
  struct sched_param * _Nullable );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
void* _Nullable pthread_getspecific(pthread_key_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_join(pthread_t , void * _Nullable * _Nullable)
  __asm("_" "pthread_join" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_key_create(pthread_key_t *, void (* _Nullable)(void *));

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_key_delete(pthread_key_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutex_destroy(pthread_mutex_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutex_getprioceiling(const pthread_mutex_t * ,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutex_init(pthread_mutex_t * ,
  const pthread_mutexattr_t * _Nullable );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutex_lock(pthread_mutex_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutex_setprioceiling(pthread_mutex_t * , int,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutex_trylock(pthread_mutex_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutex_unlock(pthread_mutex_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_destroy(pthread_mutexattr_t *) __asm("_" "pthread_mutexattr_destroy" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t * ,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_getprotocol(const pthread_mutexattr_t * ,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_getpshared(const pthread_mutexattr_t * ,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_gettype(const pthread_mutexattr_t * ,
  int * );

__attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) __attribute__((availability(watchos,introduced=4.3))) __attribute__((availability(tvos,introduced=11.3)))
int pthread_mutexattr_getpolicy_np(const pthread_mutexattr_t * ,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_init(pthread_mutexattr_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_setprotocol(pthread_mutexattr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_mutexattr_settype(pthread_mutexattr_t *, int);

__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
int pthread_mutexattr_setpolicy_np(pthread_mutexattr_t *, int);

__attribute__((availability(swift,unavailable,message="Use lazily initialized globals instead")))
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_once(pthread_once_t *, void (* _Nonnull)(void));

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlock_destroy(pthread_rwlock_t * ) __asm("_" "pthread_rwlock_destroy" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlock_init(pthread_rwlock_t * ,
  const pthread_rwlockattr_t * _Nullable )
  __asm("_" "pthread_rwlock_init" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlock_rdlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_rdlock" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlock_tryrdlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_tryrdlock" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlock_trywrlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_trywrlock" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlock_wrlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_wrlock" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlock_unlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_unlock" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t * ,
  int * );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlockattr_init(pthread_rwlockattr_t *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
pthread_t pthread_self(void);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_setcancelstate(int , int * _Nullable)
  __asm("_" "pthread_setcancelstate" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_setcanceltype(int , int * _Nullable)
  __asm("_" "pthread_setcanceltype" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_setconcurrency(int);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_setschedparam(pthread_t, int, const struct sched_param *);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_setspecific(pthread_key_t , const void * _Nullable);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
void pthread_testcancel(void) __asm("_" "pthread_testcancel" );




__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_is_threaded_np(void);

__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.2)))
int pthread_threadid_np(pthread_t _Nullable,__uint64_t* _Nullable);


__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.2)))
int pthread_getname_np(pthread_t,char*,size_t);

__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.2)))
int pthread_setname_np(const char*);


__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_main_np(void);


__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
mach_port_t pthread_mach_thread_np(pthread_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
size_t pthread_get_stacksize_np(pthread_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
void* pthread_get_stackaddr_np(pthread_t);


__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_signal_thread_np(pthread_cond_t *, pthread_t _Nullable);


__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_cond_timedwait_relative_np(pthread_cond_t *, pthread_mutex_t *,
  const struct timespec * _Nullable);


__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))

int pthread_create_suspended_np(
  pthread_t _Nullable * _Nonnull, const pthread_attr_t * _Nullable,
  void * _Nullable (* _Nonnull)(void * _Nullable), void * _Nullable);





__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_kill(pthread_t, int);

__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0)))
_Nullable pthread_t pthread_from_mach_thread_np(mach_port_t);

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
int pthread_sigmask(int, const sigset_t * _Nullable, sigset_t * _Nullable)
  __asm("_" "pthread_sigmask" );

__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0)))
void pthread_yield_np(void);


}
#pragma clang assume_nonnull end
# 73 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2


# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/un.h" 1 3 4
# 76 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/un.h" 3 4
struct sockaddr_un {
 unsigned char sun_len;
 sa_family_t sun_family;
 char sun_path[104];
};
# 76 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h" 1 3 4
# 94 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h" 3 4
#pragma pack(4)
# 107 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h" 3 4
struct ipc_perm {
 uid_t uid;
 gid_t gid;
 uid_t cuid;
 gid_t cgid;
 mode_t mode;
 unsigned short _seq;
 key_t _key;
};
# 138 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h" 3 4
#pragma pack()
# 170 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h" 3 4
extern "C" {

key_t ftok(const char *, int);
}
# 77 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h" 1 3 4
# 70 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h" 3 4
#pragma pack(4)
# 85 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h" 3 4
struct __semid_ds_new

{
 struct ipc_perm sem_perm;
 __int32_t sem_base;
 unsigned short sem_nsems;
 time_t sem_otime;
 __int32_t sem_pad1;
 time_t sem_ctime;


 __int32_t sem_pad2;
 __int32_t sem_pad3[4];
};
#pragma pack()
# 132 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h" 3 4
struct sem {
 unsigned short semval;
 pid_t sempid;
 unsigned short semncnt;
 unsigned short semzcnt;
};





struct sembuf {
 unsigned short sem_num;
 short sem_op;
 short sem_flg;
};
# 177 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h" 3 4
union semun {
 int val;
 struct __semid_ds_new *buf;
 unsigned short *array;
};
typedef union semun semun_t;
# 196 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h" 3 4
extern "C" {

int semsys(int, ...);

int semctl(int, int, int, ...) __asm("_" "semctl" );
int semget(key_t, int, int);
int semop(int, struct sembuf *, size_t);
}
# 78 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h" 1 3 4
# 93 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h" 3 4
typedef unsigned short shmatt_t;
# 119 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h" 3 4
#pragma pack(4)
# 141 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h" 3 4
struct __shmid_ds_new

{
 struct ipc_perm shm_perm;
 size_t shm_segsz;
 pid_t shm_lpid;
 pid_t shm_cpid;
 shmatt_t shm_nattch;
 time_t shm_atime;
 time_t shm_dtime;
 time_t shm_ctime;
 void *shm_internal;
};
# 172 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h" 3 4
#pragma pack()


extern "C" {

int shmsys(int, ...);

void *shmat(int, const void *, int);
int shmctl(int, int, struct __shmid_ds_new *) __asm("_" "shmctl" );
int shmdt(const void *);
int shmget(key_t, size_t, int);
}
# 79 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h" 1 3 4
# 72 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h" 3 4
typedef __uint32_t tcp_seq;
typedef __uint32_t tcp_cc;
# 82 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h" 3 4
struct tcphdr {
 unsigned short th_sport;
 unsigned short th_dport;
 tcp_seq th_seq;
 tcp_seq th_ack;

 unsigned int th_x2:4,
     th_off:4;





 unsigned char th_flags;
# 107 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h" 3 4
 unsigned short th_win;
 unsigned short th_sum;
 unsigned short th_urp;
};
# 233 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h" 3 4
struct tcp_connection_info {
 u_int8_t tcpi_state;
 u_int8_t tcpi_snd_wscale;
 u_int8_t tcpi_rcv_wscale;
 u_int8_t __pad1;
 u_int32_t tcpi_options;




 u_int32_t tcpi_flags;


 u_int32_t tcpi_rto;
 u_int32_t tcpi_maxseg;
 u_int32_t tcpi_snd_ssthresh;
 u_int32_t tcpi_snd_cwnd;
 u_int32_t tcpi_snd_wnd;
 u_int32_t tcpi_snd_sbbytes;
 u_int32_t tcpi_rcv_wnd;
 u_int32_t tcpi_rttcur;
 u_int32_t tcpi_srtt;
 u_int32_t tcpi_rttvar;
 u_int32_t
     tcpi_tfo_cookie_req:1,
     tcpi_tfo_cookie_rcv:1,
     tcpi_tfo_syn_loss:1,
     tcpi_tfo_syn_data_sent:1,
     tcpi_tfo_syn_data_acked:1,
     tcpi_tfo_syn_data_rcv:1,
     tcpi_tfo_cookie_req_rcv:1,
     tcpi_tfo_cookie_sent:1,
     tcpi_tfo_cookie_invalid:1,
     tcpi_tfo_cookie_wrong:1,
     tcpi_tfo_no_cookie_rcv:1,
     tcpi_tfo_heuristics_disable:1,
     tcpi_tfo_send_blackhole:1,
     tcpi_tfo_recv_blackhole:1,
     tcpi_tfo_onebyte_proxy:1,
     __pad2:17;
 u_int64_t tcpi_txpackets __attribute__((aligned(8)));
 u_int64_t tcpi_txbytes __attribute__((aligned(8)));
 u_int64_t tcpi_txretransmitbytes __attribute__((aligned(8)));
 u_int64_t tcpi_rxpackets __attribute__((aligned(8)));
 u_int64_t tcpi_rxbytes __attribute__((aligned(8)));
 u_int64_t tcpi_rxoutoforderbytes __attribute__((aligned(8)));
 u_int64_t tcpi_txretransmitpackets __attribute__((aligned(8)));
};
# 80 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/poll.h" 1 3 4
# 81 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 97 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h"
# 1 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/uio.h" 1 3 4
# 90 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/uio.h" 3 4
enum uio_rw { UIO_READ, UIO_WRITE };




extern "C" {
ssize_t readv(int, const struct iovec *, int) __asm("_" "readv" );
ssize_t writev(int, const struct iovec *, int) __asm("_" "writev" );
}
# 98 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h" 2
# 118 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h"
extern "C" {
# 250 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/platform/spk_platforms.h"
int32 __SPlatform_GetErrno(void);


int32 __SPlatform_GetNegErrno(void);


void __SPlatform_SetErrno(int32 err);


int __SPlatform_IsErrEagain(int32 err);

int __SPlatform_IsErrEconnaborted(int32 err);

int __SPlatform_IsErrEproto(int32 err);

int __SPlatform_IsErrEtimeout(int32 err);

int __SPlatform_IsErrEpipe(int32 err);

int __SPlatform_IsErrEintr(int32 err);

int __SPlatform_IsErrEbadmsg(int32 err);


int __SPlatform_IsNegEagain(int32 err);

int __SPlatform_IsNegEconnaborted(int32 err);

int __SPlatform_IsNegEproto(int32 err);

int __SPlatform_IsNegEtimeout(int32 err);

int __SPlatform_IsNegEpipe(int32 err);

int __SPlatform_IsNegEintr(int32 err);

int __SPlatform_IsNegEbadmsg(int32 err);




}
# 292 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h" 2








extern "C" {
# 331 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef enum _eOesApiChannelType {
    OESAPI_CHANNEL_TYPE_ORDER = 1,
    OESAPI_CHANNEL_TYPE_REPORT = 2,
    OESAPI_CHANNEL_TYPE_QUERY = 3
} eOesApiChannelTypeT;
# 346 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef SGeneralClientChannelT OesApiSessionInfoT;
# 358 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef SGeneralClientChannelGroupT OesApiChannelGroupT;
# 370 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef SGeneralClientAddrInfoT OesApiAddrInfoT;
# 382 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef SGeneralClientRemoteCfgT OesApiRemoteCfgT;
# 394 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef SGeneralClientAddrCursorT OesApiAddrCursorT;
# 406 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef struct _OesApiSubscribeInfo {





    int8 clEnvId;


    uint8 __filler[3];
# 433 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
    int32 rptTypes;
} OesApiSubscribeInfoT;
# 446 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef struct _OesApiClientCfg {
    OesApiRemoteCfgT ordChannelCfg;
    OesApiRemoteCfgT rptChannelCfg;
    OesApiRemoteCfgT qryChannelCfg;
    OesApiSubscribeInfoT subscribeInfo;
} OesApiClientCfgT;
# 466 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef struct _OesApiClientEnv {
    OesApiSessionInfoT ordChannel;
    OesApiSessionInfoT rptChannel;
    OesApiSessionInfoT qryChannel;
} OesApiClientEnvT;
# 499 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef int32 (*F_OESAPI_ON_RPT_MSG_T) (
                OesApiSessionInfoT *pSessionInfo,
                SMsgHeadT *pMsgHead,
                void *pMsgBody,
                void *pCallbackParams);
# 521 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
typedef int32 (*F_OESAPI_ON_QRY_MSG_T) (
                OesApiSessionInfoT *pSessionInfo,
                SMsgHeadT *pMsgHead,
                void *pMsgBody,
                OesQryCursorT *pQryCursor,
                void *pCallbackParams);
# 563 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendOrderReq(
                OesApiSessionInfoT *pOrdChannel,
                const OesOrdReqT *pOrdReq);
# 596 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendOrderCancelReq(
                OesApiSessionInfoT *pOrdChannel,
                const OesOrdCancelReqT *pCancelReq);
# 618 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendBatchOrdersReq(
                OesApiSessionInfoT *pOrdChannel,
                const OesOrdReqT *ppOrdPtrList[],
                int32 ordCount);
# 641 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendBatchOrdersReq2(
                OesApiSessionInfoT *pOrdChannel,
                OesOrdReqT *pOrdReqArray,
                int32 ordCount);
# 666 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendFundTransferReq(
                OesApiSessionInfoT *pOrdChannel,
                const OesFundTrsfReqT *pFundTrsfReq);
# 687 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendChangePasswordReq(
                OesApiSessionInfoT *pOrdChannel,
                const OesChangePasswordReqT *pChangePasswordReq,
                OesChangePasswordRspT *pOutChangePasswordRsp);
# 708 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendChangePasswordReqAsynced(
                OesApiSessionInfoT *pOrdChannel,
                const OesChangePasswordReqT *pChangePasswordReq,
                OesChangePasswordRspT *pOutChangePasswordRsp);
# 739 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendOptSettlementConfirmReq(
                OesApiSessionInfoT *pOrdChannel,
                const OesOptSettlementConfirmReqT *pOptSettlementConfirmReq,
                OesOptSettlementConfirmRspT *pOptSettlementConfirmRsp);
# 763 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_SendOptSettlementConfirmReqAsynced(
                OesApiSessionInfoT *pOrdChannel,
                const OesOptSettlementConfirmReqT *pOptSettlementConfirmReq,
                OesOptSettlementConfirmRspT *pOptSettlementConfirmRsp);
# 792 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_WaitReportMsg(
                OesApiSessionInfoT *pRptChannel,
                int32 timeoutMs,
                F_OESAPI_ON_RPT_MSG_T pRptMsgCallback,
                void *pCallbackParams);
# 809 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_RecvReportMsg(
                OesApiSessionInfoT *pRptChannel,
                SMsgHeadT *pOutMsgHead,
                OesRspMsgBodyT *pOutMsgBody,
                int32 bufSize,
                int32 timeoutMs);
# 827 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
const char *
        OesApi_GetApiVersion();
# 837 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_GetTradingDay(
                OesApiSessionInfoT *pQryChannel);
# 848 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_GetClientOverview(
                OesApiSessionInfoT *pQryChannel,
                OesClientOverviewT *pOutClientOverview);
# 863 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QuerySingleOrder(
                OesApiSessionInfoT *pQryChannel,
                int32 clSeqNo,
                OesOrdItemT *pOutOrdItem);
# 879 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QuerySingleCashAsset(
                OesApiSessionInfoT *pQryChannel,
                const char *pCashAcctId,
                OesCashAssetItemT *pOutCashAssetItem);
# 896 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QuerySingleStkHolding(
                OesApiSessionInfoT *pQryChannel,
                const char *pInvAcctId,
                const char *pSecurityId,
                OesStkHoldingItemT *pOutHoldingItem);
# 916 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOrder(
                OesApiSessionInfoT *pQryChannel,
                const OesQryOrdFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 936 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryTrade(
                OesApiSessionInfoT *pQryChannel,
                const OesQryTrdFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 956 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryCashAsset(
                OesApiSessionInfoT *pQryChannel,
                const OesQryCashAssetFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 976 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryStkHolding(
                OesApiSessionInfoT *pQryChannel,
                const OesQryStkHoldingFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 996 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryLotWinning(
                OesApiSessionInfoT *pQryChannel,
                const OesQryLotWinningFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1016 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryCustInfo(
                OesApiSessionInfoT *pQryChannel,
                const OesQryCustFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1036 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryInvAcct(
                OesApiSessionInfoT *pQryChannel,
                const OesQryInvAcctFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1056 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryCommissionRate(
                OesApiSessionInfoT *pQryChannel,
                const OesQryCommissionRateFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1076 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryFundTransferSerial(
                OesApiSessionInfoT *pQryChannel,
                const OesQryFundTransferSerialFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1096 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryIssue(
                OesApiSessionInfoT *pQryChannel,
                const OesQryIssueFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1116 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryStock(
                OesApiSessionInfoT *pQryChannel,
                const OesQryStockFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1136 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryEtf(
                OesApiSessionInfoT *pQryChannel,
                const OesQryEtfFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1156 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryEtfComponent(
                OesApiSessionInfoT *pQryChannel,
                const OesQryEtfComponentFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1178 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryMarketState(
                OesApiSessionInfoT *pQryChannel,
                const OesQryMarketStateFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1199 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryNotifyInfo(
                OesApiSessionInfoT *pQryChannel,
                const OesQryNotifyInfoFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1218 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryCounterCash(
                OesApiSessionInfoT *pQryChannel,
                const char *pCashAcctId,
                OesCounterCashItemT *pOutCounterCashItem);
# 1235 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryBrokerParamsInfo(
                OesApiSessionInfoT *pQryChannel,
                OesBrokerParamsInfoT *pOutBrokerParams);
# 1259 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOption(
                OesApiSessionInfoT *pQryChannel,
                const OesQryOptionFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1279 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QuerySingleOptHolding(
                OesApiSessionInfoT *pQryChannel,
                const char *pInvAcctId,
                const char *pSecurityId,
                uint8 mktId,
                uint8 positionType,
                OesOptHoldingItemT *pOutHoldingItem);
# 1301 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOptHolding(
                OesApiSessionInfoT *pQryChannel,
                const OesQryOptHoldingFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1320 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOptUnderlyingHolding(
                OesApiSessionInfoT *pQryChannel,
                const OesQryOptUnderlyingHoldingFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1340 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOptPositionLimit(
                OesApiSessionInfoT *pQryChannel,
                const OesQryOptPositionLimitFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1361 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOptPurchaseLimit(
                OesApiSessionInfoT *pQryChannel,
                const OesQryOptPurchaseLimitFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1381 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOptExerciseAssign(
                OesApiSessionInfoT *pQryChannel,
                const OesQryOptExerciseAssignFilterT *pQryFilter,
                F_OESAPI_ON_QRY_MSG_T pQryMsgCallback,
                void *pCallbackParams);
# 1399 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_QueryOptSettlementStatement(
                OesApiSessionInfoT *pQryChannel,
                const char *pCustId,
                char *pOutSettlementInfo,
                int32 settlementInfoSize);
# 1440 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_Logon(
                OesApiSessionInfoT *pOutSessionInfo,
                eOesApiChannelTypeT channelType,
                const char *pUri,
                const char *pUsername,
                const char *pPassword,
                int8 clEnvId,
                int32 heartBtInt,
                const SSocketOptionConfigT *pSocketOptions);
# 1480 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_LogonReplicaSet(
                OesApiSessionInfoT *pOutSessionInfo,
                eOesApiChannelTypeT channelType,
                const char *pUriList,
                const char *pUsername,
                const char *pPassword,
                int8 clEnvId,
                int32 heartBtInt,
                const SSocketOptionConfigT *pSocketOptions);
# 1520 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_LogonPeerNodes(
                OesApiSessionInfoT *pOutSessionInfo,
                eOesApiChannelTypeT channelType,
                const char *pUriList,
                const char *pUsername,
                const char *pPassword,
                int8 clEnvId,
                int32 heartBtInt,
                const SSocketOptionConfigT *pSocketOptions);
# 1549 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_SendReportSynchronization(
                OesApiSessionInfoT *pRptChannel,
                int8 subscribeEnvId,
                int32 subscribeRptTypes,
                int64 lastRptSeqNum);







int OesApi_SendHeartbeat(
                OesApiSessionInfoT *pSessionInfo);
# 1573 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_TestOrdChannel(
                OesApiSessionInfoT *pOrdChannel,
                const char *pTestReqId,
                int32 testReqIdSize);
# 1587 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_TestOrdChannel2(
                OesApiSessionInfoT *pOrdChannel,
                OesTestRequestReqT *pTestReq,
                OesTestRequestRspT *pOutTestRsp);
# 1600 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_TestOrdChannelAsynced(
                OesApiSessionInfoT *pOrdChannel,
                const char *pTestReqId,
                int32 testReqIdSize);
# 1614 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_TestRptChannel(
                OesApiSessionInfoT *pRptChannel,
                const char *pTestReqId,
                int32 testReqIdSize);
# 1627 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_TestRptChannel2(
                OesApiSessionInfoT *pRptChannel,
                OesTestRequestReqT *pTestReq);
# 1638 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_Logout(
                OesApiSessionInfoT *pSessionInfo,
                int isDestory);






void OesApi_Destory(
                OesApiSessionInfoT *pSessionInfo);
# 1692 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitAll(
                OesApiClientEnvT *pOutCliEnv,
                const char *pCfgFile,
                const char *pLoggerSection,
                const char *pCfgSection,
                const char *pOrdAddrKey,
                const char *pRptAddrKey,
                const char *pQryAddrKey,
                int64 lastRptSeqNum,
                int32 *pOutLastClSeqNo);
# 1742 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitAllByConvention(
                OesApiClientEnvT *pOutCliEnv,
                const char *pCfgFile,
                int64 lastRptSeqNum,
                int32 *pOutLastClSeqNo);
# 1783 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitAllByCfgStruct(
                OesApiClientEnvT *pOutCliEnv,
                const OesApiClientCfgT *pClientCfg,
                int64 lastRptSeqNum,
                int32 *pOutLastClSeqNo);
# 1796 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
void OesApi_LogoutAll(
                OesApiClientEnvT *pOutCliEnv,
                int isDestory);






void OesApi_DestoryAll(
                OesApiClientEnvT *pOutCliEnv);
# 1821 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitLogger(
                const char *pCfgFile,
                const char *pLoggerSection);







int OesApi_ResetThreadLoggerName(
                const char *pLogSystemName);
# 1859 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitOrdChannel(
                OesApiSessionInfoT *pOutOrdChannel,
                const char *pCfgFile,
                const char *pCfgSection,
                const char *pAddrKey,
                int32 *pOutLastClSeqNo);
# 1889 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitOrdChannel2(
                OesApiSessionInfoT *pOutOrdChannel,
                const OesApiRemoteCfgT *pRemoteCfg,
                int32 *pOutLastClSeqNo);
# 1916 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitRptChannel(
                OesApiSessionInfoT *pOutRptChannel,
                const char *pCfgFile,
                const char *pCfgSection,
                const char *pAddrKey,
                int64 lastRptSeqNum);
# 1944 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitRptChannel2(
                OesApiSessionInfoT *pOutRptChannel,
                const OesApiRemoteCfgT *pRemoteCfg,
                const OesApiSubscribeInfoT *pSubscribeInfo,
                int64 lastRptSeqNum);
# 1967 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitQryChannel(
                OesApiSessionInfoT *pOutQryChannel,
                const char *pCfgFile,
                const char *pCfgSection,
                const char *pAddrKey);
# 1988 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitQryChannel2(
                OesApiSessionInfoT *pOutQryChannel,
                const OesApiRemoteCfgT *pRemoteCfg);
# 2006 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_ParseAddrListString(
                const char *pUriList,
                OesApiAddrInfoT *pOutAddrList,
                int32 addrListLength);
# 2022 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_ParseConfigFromFile(
                const char *pCfgFile,
                const char *pSection,
                const char *pAddrKey,
                OesApiRemoteCfgT *pOutRemoteCfg,
                OesApiSubscribeInfoT *pOutSubscribeInfo);
# 2041 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_ParseConfigFromFile2(
                const char *pCfgFile,
                const char *pSection,
                const char *pAddrKey,
                OesApiRemoteCfgT *pOutRemoteCfg,
                OesApiSubscribeInfoT *pOutSubscribeInfo,
                int isRequiredCfg);
# 2056 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_ParseAllConfig(
                const char *pCfgFile,
                OesApiClientCfgT *pOutApiCfg);
# 2073 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_InitChannelGroup(
                OesApiChannelGroupT *pChannelGroup);







int OesApi_DestoryChannelGroup(
                OesApiChannelGroupT *pChannelGroup);
# 2095 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_AddToChannelGroup(
                OesApiChannelGroupT *pChannelGroup,
                OesApiSessionInfoT *pChannel);
# 2106 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_DeleteFromChannelGroup(
                OesApiChannelGroupT *pChannelGroup,
                OesApiSessionInfoT *pTargetChannel);
# 2121 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
OesApiSessionInfoT *
        OesApi_GetFromChannelGroup(
                OesApiChannelGroupT *pChannelGroup,
                int32 index);
# 2133 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
OesApiSessionInfoT *
        OesApi_GetFromChannelGroupBySocket(
                OesApiChannelGroupT *pChannelGroup,
                int32 socketFd);
# 2146 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_ForeachInChannelGroup(
                OesApiChannelGroupT *pChannelGroup,
                int32 (*fnCallback)(OesApiSessionInfoT *pChannel, void *pParams),
                void *pParams);
# 2168 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_WaitOnChannelGroup(
                OesApiChannelGroupT *pChannelGroup,
                int32 timeoutMs,
                F_OESAPI_ON_RPT_MSG_T pOnMsgCallback,
                void *pCallbackParams,
                OesApiSessionInfoT **ppOutFailed);
# 2187 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
void OesApi_SetThreadUsername(
                const char *pUsername);






const char *
        OesApi_GetThreadUsername();
# 2205 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
void OesApi_SetThreadPassword(
                const char *pPassword);







void OesApi_SetThreadEnvId(
                int8 clEnvId);






int8 OesApi_GetThreadEnvId();







void OesApi_SetThreadSubscribeEnvId(
                int8 subscribeEnvId);






int8 OesApi_GetThreadSubscribeEnvId();
# 2247 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_SetCustomizedIpAndMac(
                const char *pIpStr,
                const char *pMacStr);







int OesApi_SetCustomizedIp(
                const char *pIpStr);







int OesApi_SetCustomizedMac(
                const char *pMacStr);






const char *
        OesApi_GetCustomizedIp();






const char *
        OesApi_GetCustomizedMac();







int OesApi_SetCustomizedDriverId(
                const char *pDriverId);






const char *
        OesApi_GetCustomizedDriverId();







int8 OesApi_GetClEnvId(
                const OesApiSessionInfoT *pSessionInfo);
# 2318 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_IsBusinessSupported(
                const OesApiSessionInfoT *pSessionInfo,
                eOesBusinessScopeT businessScope);







int64 OesApi_GetLastRecvTime(
                const OesApiSessionInfoT *pSessionInfo);







int64 OesApi_GetLastSendTime(
                const OesApiSessionInfoT *pSessionInfo);
# 2347 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int32 OesApi_HasMoreCachedData(
                const OesApiSessionInfoT *pRptChannel);







int OesApi_IsValidOrdChannel(
                const OesApiSessionInfoT *pOrdChannel);







int OesApi_IsValidRptChannel(
                const OesApiSessionInfoT *pRptChannel);







int OesApi_IsValidQryChannel(
                const OesApiSessionInfoT *pQryChannel);







int OesApi_IsValidChannelGroup(
                const OesApiChannelGroupT *pChannelGroup);






int32 OesApi_GetLastError();






void OesApi_SetLastError(
                int32 errCode);







const char *
        OesApi_GetErrorMsg(
                int32 errCode);
# 2418 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
const char *
        OesApi_GetErrorMsg2(
                uint8 status,
                uint8 detailStatus);
# 2430 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_IsErrorOf(
                int32 errCode,
                const SErrMsgT *pErrMsg);
# 2442 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
int OesApi_IsErrorOf2(
                uint8 status,
                uint8 detailStatus,
                const SErrMsgT *pErrMsg);
# 2468 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_api.h"
OesOrdCnfmT *
        OesHelper_ExtractOrdReportFromTrd(
                const OesTrdCnfmT *pTrdReport,
                OesOrdCnfmT *pOutOrdReport);




}
# 37 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h" 2
# 1 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h" 1
# 36 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
extern "C" {
# 57 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
typedef enum _eSpkDataExportFormat {
    SPK_ENDPOINT_EXPORT_FORMATE_NONE = 0,
    SPK_ENDPOINT_EXPORT_FORMATE_JSON = 1,
    SPK_ENDPOINT_EXPORT_FORMATE_CSV = 2,
    SPK_ENDPOINT_EXPORT_FORMATE_BINARY = 3
} eSpkDataExportFormatT;
# 71 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
struct _SEndpointChannel;





typedef struct _SEndpointChannelCfg {

    int32 channelIndex;

    int32 channelType;

    char channelTag[(32)];


    SGeneralClientRemoteCfgT
                            remoteCfg;







    int32 (*fnOnMsg) (
            SGeneralClientChannelT *pSessionInfo,
            SMsgHeadT *pMsgHead,
            void *pMsgBody,
            void *pCallbackParams);

    void *pOnMsgParams;
# 112 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
    int32 (*fnOnConnect) (
            struct _SEndpointChannel *pAsyncChannel,
            void *pCallbackParams);

    void *pOnConnectParams;
# 126 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
    int32 (*fnOnDisconnect) (
            struct _SEndpointChannel *pAsyncChannel,
            void *pCallbackParams);

    void *pOnDisconnectParams;


    union {
        char buf[(128)];
        int8 i8[(128)];
        uint8 u8[(128)];
        int16 i16[(128) / 2];
        uint16 u16[(128) / 2];
        int32 i32[(128) / 4];
        uint32 u32[(128) / 4];
        int64 i64[(128) / 8];
        uint64 u64[(128) / 8];
        void *ptr[(128) / 8];
    } customData;

} SEndpointChannelCfgT;
# 161 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
typedef struct _SEndpointIoThreadCfg {

    uint8 enable;


    uint8 isOutputSimplify;


    uint8 __filler[2];


    int32 dataOutputFormat;


    char dataOutputPath[(256)];


    char statsOutputPath[(256)];
} SEndpointIoThreadCfgT;
# 193 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
typedef struct _SEndpointContext {

    void *pInternalRefs;

    void *__filler;


    volatile uint8 terminateFlag;

    uint8 __filler2[7];
} SEndpointContextT;
# 215 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
typedef struct _SEndpointChannel {

    SGeneralClientChannelT *pSessionInfo;

    SEndpointContextT *pContext;


    SEndpointChannelCfgT *pChannelCfg;

    void *pExtChannelCfg;


    volatile uint8 isConnected;

    uint8 __filler2[7];


    volatile int64 lastInMsgSeq;

    volatile int64 lastOutMsgSeq;
} SEndpointChannelT;
# 268 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
typedef int32 (*F_SPK_ENDPOINT_ON_CONNECT_T) (
                SEndpointChannelT *pAsyncChannel,
                void *pCallbackParams);
# 291 "/Users/lostleaf/dev/vnpy_oes/include/oes/sutil/net/spk_general_endpoint_define.h"
typedef int32 (*F_SPK_ENDPOINT_ON_DISCONNECT_T) (
                SEndpointChannelT *pAsyncChannel,
                void *pCallbackParams);




}
# 38 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h" 2



extern "C" {
# 76 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
typedef SEndpointChannelCfgT OesAsyncApiChannelCfgT;
# 88 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
typedef SEndpointIoThreadCfgT OesAsyncApiIoThreadCfgT;
# 101 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
typedef SEndpointContextT OesAsyncApiContextT;
# 143 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
typedef SEndpointChannelT OesAsyncApiChannelT;
# 181 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
typedef F_OESAPI_ON_RPT_MSG_T F_OESAPI_ASYNC_ON_MSG_T;
# 217 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
typedef int32 (*F_OESAPI_ASYNC_ON_CONNECT_T) (
                OesAsyncApiChannelT *pAsyncChannel,
                void *pCallbackParams);
# 240 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
typedef int32 (*F_OESAPI_ASYNC_ON_DISCONNECT_T) (
                OesAsyncApiChannelT *pAsyncChannel,
                void *pCallbackParams);
# 263 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
OesAsyncApiContextT *
        OesAsyncApi_CreateContext(
                const char *pCfgFile);
# 286 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
OesAsyncApiContextT *
        OesAsyncApi_CreateContext2(
                const char *pCfgFile,
                const char *pLoggerSection,
                const char *pAsyncApiSection,
                const char *pCpusetSection);
# 305 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
OesAsyncApiContextT *
        OesAsyncApi_CreateContextSimple(
                const char *pLoggerCfgFile,
                const char *pLoggerSection,
                int32 asyncQueueSize);






void OesAsyncApi_ReleaseContext(
                OesAsyncApiContextT *pAsyncContext);







int OesAsyncApi_Start(
                OesAsyncApiContextT *pAsyncContext);






void OesAsyncApi_Stop(
                OesAsyncApiContextT *pAsyncContext);







int OesAsyncApi_IsRunning(
                OesAsyncApiContextT *pAsyncContext);







int64 OesAsyncApi_GetTotalPicked(
                OesAsyncApiContextT *pAsyncContext);
# 366 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_GetChannelCount(
                OesAsyncApiContextT *pAsyncContext);







int32 OesAsyncApi_GetConnectedChannelCount(
                OesAsyncApiContextT *pAsyncContext);
# 403 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
OesAsyncApiChannelT *
        OesAsyncApi_AddChannel(
                OesAsyncApiContextT *pAsyncContext,
                eOesApiChannelTypeT channelType,
                const char *pChannelTag,
                OesApiRemoteCfgT *pRemoteCfg,
                OesApiSubscribeInfoT *pSubscribeCfg,
                F_OESAPI_ASYNC_ON_MSG_T fnOnMsg,
                void *pOnMsgParams,
                F_OESAPI_ASYNC_ON_CONNECT_T fnOnConnect,
                void *pOnConnectParams,
                F_OESAPI_ASYNC_ON_DISCONNECT_T fnOnDisconnect,
                void *pOnDisconnectParams);
# 443 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
OesAsyncApiChannelT *
        OesAsyncApi_AddChannelFromFile(
                OesAsyncApiContextT *pAsyncContext,
                eOesApiChannelTypeT channelType,
                const char *pChannelTag,
                const char *pCfgFile,
                const char *pCfgSection,
                const char *pAddrKey,
                F_OESAPI_ASYNC_ON_MSG_T fnOnMsg,
                void *pOnMsgParams,
                F_OESAPI_ASYNC_ON_CONNECT_T fnOnConnect,
                void *pOnConnectParams,
                F_OESAPI_ASYNC_ON_DISCONNECT_T fnOnDisconnect,
                void *pOnDisconnectParams);
# 473 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
OesAsyncApiChannelT *
        OesAsyncApi_GetChannel(
                OesAsyncApiContextT *pAsyncContext,
                int32 channelType,
                int32 channelIndex);
# 494 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
OesAsyncApiChannelT *
        OesAsyncApi_GetChannelByTag(
                OesAsyncApiContextT *pAsyncContext,
                int32 channelType,
                const char *pChannelTag);
# 513 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_ForeachChannel(
                OesAsyncApiContextT *pAsyncContext,
                int32 channelType,
                int32 (*fnCallback)(
                        OesAsyncApiChannelT *pAsyncChannel, void *pParams),
                void *pParams);
# 534 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_ForeachChannel2(
                OesAsyncApiContextT *pAsyncContext,
                int32 channelType,
                int32 (*fnCallback)(
                        OesAsyncApiChannelT *pAsyncChannel,
                        void *pParam1, void *pParam2),
                void *pParam1,
                void *pParam2);
# 558 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_ForeachChannel3(
                OesAsyncApiContextT *pAsyncContext,
                int32 channelType,
                int32 (*fnCallback)(OesAsyncApiChannelT *pAsyncChannel,
                        void *pParam1, void *pParam2, void *pParam3),
                void *pParam1,
                void *pParam2,
                void *pParam3);







int OesAsyncApi_IsChannelConnected(
                OesAsyncApiChannelT *pAsyncChannel);







OesAsyncApiChannelCfgT *
        OesAsyncApi_GetChannelCfg(
                OesAsyncApiChannelT *pAsyncChannel);







OesApiSubscribeInfoT *
        OesAsyncApi_GetChannelSubscribeCfg(
                OesAsyncApiChannelT *pAsyncChannel);
# 604 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_RegisterSymbioticSession(
                OesAsyncApiChannelT *pAsyncChannel,
                OesApiSessionInfoT *pObserverSession);
# 628 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_SendOrderReq(
                OesAsyncApiChannelT *pAsyncOrdChannel,
                const OesOrdReqT *pOrdReq);
# 646 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_SendOrderCancelReq(
                OesAsyncApiChannelT *pAsyncOrdChannel,
                const OesOrdCancelReqT *pCancelReq);
# 669 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_SendBatchOrdersReq(
                OesAsyncApiChannelT *pAsyncOrdChannel,
                const OesOrdReqT *ppOrdPtrList[],
                int32 ordCount);
# 693 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_SendBatchOrdersReq2(
                OesAsyncApiChannelT *pAsyncOrdChannel,
                OesOrdReqT *pOrdReqArray,
                int32 ordCount);
# 712 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_SendFundTransferReq(
                OesAsyncApiChannelT *pAsyncOrdChannel,
                const OesFundTrsfReqT *pFundTrsfReq);
# 734 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_SendChangePasswordReq(
                OesAsyncApiChannelT *pAsyncOrdChannel,
                const OesChangePasswordReqT *pChangePasswordReq,
                OesChangePasswordRspT *pOutChangePasswordRsp);
# 766 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int32 OesAsyncApi_SendOptSettlementConfirmReq(
                OesAsyncApiChannelT *pAsyncOrdChannel,
                const OesOptSettlementConfirmReqT *pOptSettlementConfirmReq,
                OesOptSettlementConfirmRspT *pOptSettlementConfirmRsp);
# 783 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SendHeartbeat(
                OesAsyncApiChannelT *pAsyncChannel);
# 794 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SendTestReq(
                OesAsyncApiChannelT *pAsyncChannel,
                const char *pTestReqId,
                int32 testReqIdSize);
# 819 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_LoadCpusetCfg(
                OesAsyncApiContextT *pAsyncContext,
                const char *pCfgFile,
                const char *pCfgSection,
                const char *pCommunicationCpusetKey,
                const char *pCallbackThreadCpusetKey,
                const char *pIoThreadCpusetKey);
# 838 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetCommunicationCpusetCfg(
                OesAsyncApiContextT *pAsyncContext,
                const char *pCommunicationCpuset);







const char *
        OesAsyncApi_GetCommunicationCpusetCfg(
                OesAsyncApiContextT *pAsyncContext);
# 863 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetCallbackThreadCpusetCfg(
                OesAsyncApiContextT *pAsyncContext,
                const char *pCallbackThreadCpuset);







const char *
        OesAsyncApi_GetCallbackThreadCpusetCfg(
                OesAsyncApiContextT *pAsyncContext);
# 887 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetIoThreadCpusetCfg(
                OesAsyncApiContextT *pAsyncContext,
                const char *pIoThreadCpuset);







const char *
        OesAsyncApi_GetIoThreadCpusetCfg(
                OesAsyncApiContextT *pAsyncContext);
# 910 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetPreconnectAble(
                OesAsyncApiContextT *pAsyncContext,
                int isPreconnectAble);







int OesAsyncApi_IsPreconnectAble(
                OesAsyncApiContextT *pAsyncContext);
# 937 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetTakeoverStartThreadFlag(
                OesAsyncApiContextT *pAsyncContext,
                int32 isTakeoverStartThread);







int32 OesAsyncApi_GetTakeoverStartThreadFlag(
                OesAsyncApiContextT *pAsyncContext);
# 959 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetAsyncCallbackAble(
                OesAsyncApiContextT *pAsyncContext,
                int isAsyncCallbackAble);







int OesAsyncApi_IsAsyncCallbackAble(
                OesAsyncApiContextT *pAsyncContext);
# 981 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetAsyncCallbackBusyPollAble(
                OesAsyncApiContextT *pAsyncContext,
                int isBusyPollAble);







int OesAsyncApi_IsAsyncCallbackBusyPollAble(
                OesAsyncApiContextT *pAsyncContext);







int64 OesAsyncApi_GetAsyncQueueLength(
                OesAsyncApiContextT *pAsyncContext);







int64 OesAsyncApi_GetAsyncQueueDataAreaSize(
                OesAsyncApiContextT *pAsyncContext);
# 1027 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_SetIoThreadCfg(
                OesAsyncApiContextT *pAsyncContext,
                int isEnabled,
                int isOutputSimplify,
                int32 dataOutputFormat,
                const char *pDataOutputFilePath,
                const char *pStatsOutputFilePath);







OesAsyncApiIoThreadCfgT *
        OesAsyncApi_GetIoThreadCfg(
                OesAsyncApiContextT *pAsyncContext);
# 1053 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
int OesAsyncApi_LoadIoThreadCfg(
                OesAsyncApiContextT *pAsyncContext,
                const char *pCfgFile,
                const char *pCfgSection);
# 1072 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
static inline int
__OesAsyncApi_IsRunning(OesAsyncApiContextT *pAsyncContext) {
    return pAsyncContext->pInternalRefs != __null
            && *((volatile uint8 *) &pAsyncContext->terminateFlag) == 0;
}
# 1087 "/Users/lostleaf/dev/vnpy_oes/include/oes/oes_api/oes_async_api.h"
static inline int
__OesAsyncApi_IsChannelConnected(OesAsyncApiChannelT *pAsyncChannel) {
    return pAsyncChannel->pSessionInfo
            && *((volatile uint8 *) &pAsyncChannel->isConnected);
}




}
# 2 "/Users/lostleaf/dev/vnpy_oes/vnoes/tmp.cpp" 2

int main() {
}
